2013年10月8日星期二

Gitlab的管理使用手册

本邮件内容由第三方提供,如果您不想继续收到该邮件,可 点此退订
Gitlab的管理使用手册  阅读原文»

Gitlab的管理使用手册

已经1个月没发博文了,一个是忙(瞎忙),一个是懒了,今天刚从家回来,发现已经好久没有发文章了,所以先发一篇博文,是上次"gitlab用户使用手册的"的姊妹篇。

目录

一、新建项目

二、创建用户

三、重置用户密码

四、删除用户

五、赋予用户项目权限

六、取消用户项目权限

一、新建项目

1、新建项目前,先创建项目所在的组(也就是说这个项目文件是保存在哪个组里)

选择Admin area

102524859.jpg

2、选择Groups��New Group

102622380.jpg

3、输入组名与相关信息(Groups一定要与Teams名称一致)

102654940.jpg

4、选择Create New Projcet

102729649.jpg

然后在输入项目名称,同时在namespace里选择刚才创建的组

102755998.jpg

二、创建用户

1、选择Admin area

102830700.jpg

2、选择Users��New User

102936778.jpg

3、其中Name为对方的中文名,Username使用邮箱的前缀,Email为公司邮箱(这个按照公司规定来,不一定非得按照我这样方法)

103029502.jpg

4、密码尽量选择复杂、带有特殊字符10个以上的(目前我这里是15位以上,有特殊字符,可以使用生成的软件来弄)

103304822.jpg

5、项目现在默认即可,并且把Can create group与Can create team给取消默认的勾选

103411485.jpg

6、下面信息默认不输入

103439733.jpg

7、信息输入完成后,选择Create user

103523751.jpg

三、重置用户密码

1、选择Admin area

103553888.jpg

2、选择User下面的数字(比如我当前有3个用户),比如我的为79

103650616.jpg

3、然后选择User下面的Edit

103725920.jpg

4、在出现的界面里找到

103749198.jpg

输入新的密码,完成后选择

103816132.jpg

四、删除用户

当对方离职时候,为了安全起见,需要删除对方的gitlab权限,避免机密信息丢失,操作方法如下:

1、选择Admin area

103848574.jpg

2、选择User

103923693.jpg

3、选择Destroy(删除用户)

103959117.jpg

五、赋予用户项目权限

1、选择Admin area

104027793.jpg

2、选择Teams

104105866.jpg

3、输入组名与信息

104134576.jpg

4、先增加这个组可以对哪些项目有什么权限,选择Add projects

104248665.jpg

5、在左侧的Projcetname里可以选择你当前gitlab已经存在的项目

kvm虚拟化学习笔记(十九)之convirt集中管理平台搭建  阅读原文»

(1)本文采用OEL6.3x64操作系统,需要有KVM安装环境。
(2)convirt2.1.1采用源码方式安装,convirt环境分别两部分,一部分是cms,用于管理kvm/xen虚拟主机上的虚拟机,一部分做为客户端安装到kvm/xen虚拟主机上。
(3)convirt2.1.1是开源的管理xen/kvm虚拟化管理工具,是众多开源工具中的一种。

1.安装convirt环境

(1)安装KVM环境

kvm虚拟化学习笔记(一)之kvm虚拟化环境安装:http://koumm.blog.51cto.com/703525/1288795

(2)准备convirt安装源

  # cd /etc/yum.repos.d  # wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo  

image

(3)下载convirt与cms安装包

  # cd /root/  # wget --no-cache http://www.convirture.com/downloads/convirt/2.1.1/convirt-2.1.1.tar.gz  # wget --no-cache http://www.convirture.com/downloads/convirt/2.1.1/convirt-install-2.1.1.tar.gz  

(4)安装convirt安装包

  # tar -xzvf convirt-install-2.1.1.tar.gz  # cd convirt-install/install/cms/scripts/ && ./install_dependencies  
  …  初始化 MySQL 数据库: Installing MySQL system tables...  OK  Filling help tables...  OK  To start mysqld at boot time you have to copy  support-files/mysql.server to the right place for your system  PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !  To do so, start the server, then issue the following commands:  /usr/bin/mysqladmin -u root password 'new-password'  /usr/bin/mysqladmin -u root -h vmnode1 password 'new-password'  Alternatively you can run:  /usr/bin/mysql_secure_installation  which will also give you the option of removing the test  databases and anonymous user created by default.  This is  strongly recommended for production servers.  See the manual for more instructions.  You can start the MySQL daemon with:  cd /usr ; /usr/bin/mysqld_safe &  You can test the MySQL daemon with mysql-test-run.pl  cd /usr/mysql-test ; perl mysql-test-run.pl  Please report any problems with the /usr/bin/mysqlbug script!  [确定]  正在启动 mysqld:                                          [确定]  Running mysql_secure_installation.  Current root password for fresh installation is blank. So simple press enter.  NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL  SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!  In order to log into MySQL to secure it, we'll need the current  password for the root user.  If you've just installed MySQL, and  you haven't set the root password yet, the password will be blank,  so you should just press enter here.  Enter current password for root (enter for none):  OK, successfully used password, moving on...  Setting the root password ensures that nobody can log into the MySQL  root user without the proper authorisation.  Set root password? [Y/n] y  New password:  Re-enter new password:  Password updated successfully!  Reloading privilege tables..  ... Success!  By default, a MySQL installation has an anonymous user, allowing anyone  to log into MySQL without having to have a user account created for  them.  This is intended only for testing, and to make the installation  go a bit smoother.  You should remove them before moving into a  production environment.  Remove anonymous users? [Y/n] y  ... Success!  Normally, root should only be allowed to connect from 'localhost'.  This  ensures that someone cannot guess at the root password from the network.  Disallow root login remotely? [Y/n] y  ... Success!  By default, MySQL comes with a database named 'test' that anyone can  access.  This is also intended only for testing, and should be removed  before moving into a production environment.  Remove test database and access to it? [Y/n] y  - Dropping test database...  ... Success!  - Removing privileges on test database...  ... Success!  Reloading the privilege tables will ensure that all changes made so far  will take effect immediately.  Reload privilege tables now? [Y/n] y  ... Success!  Cleaning up...  All done!  If you've completed all of the above steps, your MySQL  installation should now be secure.  Thanks for using MySQL!  mysqld (pid  2691) 正在运行...  MySQL service is already running.  Prerequsite for ConVirt Management Server (CMS) installed.  

说明:安装过程会安装mysql数据库,并输入mysql数据库root帐号密码。

230837805.jpg

(5)修改mysql数据库配置文件

image

image

(6)解压CMS软件包并安装

  # cd /root/  # cd convirt-install/install/cms/scripts/ && source install_config  # cd /root && tar -xzf convirt-2.1.1.tar.gz -C $CONVIRT_BASE  # ./setup_tg2  # ./setup_convirt  

image

image

安装过程略…

image

(7)启动与关闭convirtCMS

启动convirt

image

关闭convirt

  # /root/convirt/convirt-ctl stop  

(8)打开convirt2.1.1

http://192.168.233.170:8081

输入admin/admin

image

还需要在kvm虚拟主机上安装convirt-tools工具之后才能添加。

2.在KVM虚拟主机上安装convirt-tools工具

注:在kvm虚拟主机上安装convirt-tools工具。

  # wget http://www.convirture.com/downloads/convirture-tools/2.1.1/convirture-tools-2.1.1.tar.gz  # tar zxvf convirture-tools-2.1.1.tar.gz  # cd convirture-tools/install/managed_server/scripts  # ./convirt-tool install_dependencies  # ./convirt-tool setup  

image

image

3.在convirtcms上添加KVM虚拟主机

添加KVM虚拟主机。

image

没有评论:

发表评论