1.先安装docker环境 team_city安装 2.docker run -it --name teamcity-server \ -v /data/teamctiy_data/:/data/teamcity_server/datadir \ -v /data/teamctiy_logs/:/opt/teamcity/logs \ -p 8111:8111 \ jetbrains/teamcity-server 3.安装java8环境 sudo apt install openjdk-8-jre 192.168.10.109 teamcity server 登录密码: admin 123456 ssh : root 123456 192.168.10.102 agent root 123456 4.Nas挂载 服务器nfs挂载 1.安装nfs客户端 sudo apt-get update && sudo apt-get install nfs-common -y 2.修改nfs连接数 创建文件/etc/modprobe.d/sunrpc.conf 增加内容 options sunrpc tcp_slot_table_entries=128 options sunrpc tcp_max_slot_table_entries=128 sudo reboot cat /proc/sys/sunrpc/tcp_slot_table_entries 3.挂载nfs sudo sudo mount -t cifs -o username=admin,password=xxxxx,iocharset=utf8 //192.168.1.xxx/server1 /nas/ 4.设置自动挂载 a) 启用rc.local服务 b) sudo systemctl enable rc-local c) sudo systemctl start rc-local d) 增加挂载脚本到/etc/rc.local文件 ,脚本放在exit 0 之前 如下:
kuaibang@nginxbuildagent:~$ cat /etc/rc.local
#!/bin/bash
sudo sudo mount -t cifs -o username=admin,password=xxxxx,iocharset=utf8 //192.168.1.xxx/server1 /nas/
exit 0
kuaibang@nginxbuildagent:/etc$ chmod +x /etc/rc.local