PHP程序员

Linux 用户添加:
sudo addgroup developer //添加用户组
sudo adduser yuanyuefeng
sudo adduser yuanyuefeng developer

sudo apt-get install samba smbfs
sudo adduser yuanyuefeng sambashare
sudo smbpasswd -a yuanyuefeng
输入yyfsmb123


GIT :

Git 服务器用户添加::
本地服务器:
mkdir:.ssh
cd: .ssh/
vim config
输入内容:
host gitolite
user gitolite
hostname 192.168.3.11
port 22
identityfile ~/.ssh/yangjinming

执行:
ssh-keygen -f ~/.ssh/yangjinming
代码管理服务器:
将:/home/yangjinming/.ssh的yangjinming.pub文件添加到代码管理服务
gitolite-admin/keydir

在git add ,git commit ,git push

就可以同过git 命令获取代码。

Enter same passphrase again:
Your identification has been saved in /home/yangjinming/.ssh/yangjinming6.
Your public key has been saved in /home/yangjinming/.ssh/yangjinming6.pub.
The key fingerprint is:
c1:43:4e:ff:b6:4d:a7:dc:c0:df:9d:4d:97:4c:3e:54 yangjinming@ubuntu14-System-Product-Name
The key's randomart image is:
+--[ RSA 2048]----+
| o E|
| = . .|
| = . o |
| o . .= .|
| S o +=+|
| . = BB|
| . +.*|
| |
| |



评论
...

小明

有来过,666666。

4楼  2017-08-08  23:15发表