1.不在使用Windows下的Docker环境搭建Linux,会出现vi/vim失灵卡死的问题
2.Linux网络配置
vi /etc/sysconfig/network-scripts/ifcfg-eth33
->onboot=yes
service network restart
3.docker环境安装
yum install -y docker
4.Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
systemctl restart docker重起docker服务解决
4.部署阿里云源出了异常,换成了网易,163的,如下
curl -o /etc/yum.repos.d/CentOS-Base-ali.repo http://mirrors.163.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel-7-ali.repo http://mirrors.163.com/repo/epel-7.repo
yum clean all
yum makecache
5.yum安装jenkins时,需要加--nogpgcheck --nobest
yum install -y jenkins --nogpgcheck --nobest
6.启动Jenkins服务时
docker启动容器需要进行接口映射,以及可启动服务配置
docker run -itd -p 8085:8080 --privileged --name myCentos centos /usr/sbin/init
7.systemctl start jenkins.service启动服务启不起来时,需要先安装yum install -y initscripts
尽量不要jenkins启动,使用Tomcat启动,使用Jenkins启动时会出现Console output是乱码
https://www.cnblogs.com/lelelong/p/10252225.html
https://www.cnblogs.com/lelelong/p/10969305.html
8.Jenkins里面需要安装git插件,Linux需要安装git
yum install -y git
9.使用Linux系统时,使用Xshell连接后使用,可以复制命令及文件上传下载
10.docker宿主机与容器传文件:用于邮件报告的文件插入
docker cp /root/init.sh CS5_AS_EALL1:/home/hundsun/workspace/log
11.Linux日期设置
date -s "20211122 17:32:00"