Jenkins:http://192.168.1.240:8080/jenkins
重启jenkins:
sudo /etc/init.d/jenkins start
sudo /etc/init.d/jenkins restart
sudo vi /var/lib/jenkins/config.xml
CentOS:
DNS服务器:vim /etc/resolv.conf
增加路由默认:route add default gw 192.168.1.1
CentOS修改主机名(hostname):/etc/hosts
防火墙 开启8080端口:
vim /etc/sysconfig/iptables
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
iptables -L -n
Ubantu: sudo ufw status
安装git:
- yum install git
- yum remove git
sonar服务:http://192.168.1.240:9800/
#./sonar.sh start 启动服务
#./sonar.sh stop 停止服务
#./sonar.sh restart 重启服务
Maven:
/opt/ihome/apache-maven-3.5.0/conf/settings.xml
Nexus:
http://192.168.1.23:8081/nexus/#welcome
ssh-keygen -t rsa -b 4096 -C "zhaoweihao@ihomefnt.com"
/home/ihome/.ssh/id_rsa
http://192.168.1.240:8081/nexus /opt/ihome/nexus/nexus-2.11.1-01/conf/nexus.properties
文件同步:
rsync -aSvHz --progress --delete jobs root@192.168.1.240:/opt/ihome/jenkins
静默执行:
nohup /root/start.sh &
make: *** [credential-store.o] Error 127 // 缺失gcc
yum install gcc gcc-g++ g++
yum install install autoconf automake libtool
yum install zlib-devel
Git 安装后报错:Unable to find remote helper for 'http'
http://blog.csdn.net/robertsong2004/article/details/38904681
yum install libcurl-devel
jq下载地址:
yum list| grep jq查看是否有jq安装包。
http://dl.fedoraproject.org/pub/epel/6/x86_64/jq-1.3-2.el6.x86_64.rpm