[关闭]
@zhouyy 2018-06-07T03:14:51.000000Z 字数 501 阅读 466

centos安装node git

tool


安装nodejs v8.0.0

安装git

  1. #安装Git
  2. yum install -y epel-release
  3. #”epel-release”这个软件包会自动配置yum的软件仓库
  4. #如果是CentOS7,记得更改rpm :
  5. rpm -ivh https://centos7.iuscommunity.org/ius-release.rpm
  6. #如果是CentOS6,记得更改rpm :
  7. #rpm -ivh https://centos6.iuscommunity.org/ius-release.rpm
  8. yum list git2u
  9. yum install -y git2u
  10. git --version

EPEL源

配置git

  1. # 配置用户名
  2. git config --global user.name "username"
  3. # 配置邮箱
  4. git config --global user.email "username@email.com"
  5. # 生成 ssh,输完后连敲三个回车即可
  6. ssh-keygen -t rsa
  7. cat /root/.ssh/id_rsa.pub

添加key:http://10.200.46.1/index.php/preferences/

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注