标签:its 需要 手动 默认 emctl $2 pen mct Opens
启动一个centos服务 root@centos-mysql01:/data# docker run --privileged -itd --name centos_lnmp1.14 -p 8088:80 -p 33006:3306 centos /usr/sbin/init
root@centos-mysql01:/data# docker exec -it 97aaee886614 /bin/bash
[root@97aaee886614 /]#yum install -y gcc-c++ gcc openssl openssl-devel pcre-devel pcre openssh opsnssh-devel opsnssh-server openssh-* wget curl net-tools make sed
[root@97aaee886614 /]# sed -i ‘s@#Port 22@Port 22@‘ /etc/ssh/sshd_config
[root@97aaee886614 /]# ss -tunlp |awk -F‘,‘ ‘{print $2}‘|awk -F"=" ‘{print $2}‘
[root@97aaee886614 /]# kill -p pid
root@97aaee886614 /]# systemctl restart sshd
[root@97aaee886614 /]#rpm -qf /etc/init.d/functions
[root@97aaee886614 /]#yum install -y initscripts
标签:its 需要 手动 默认 emctl $2 pen mct Opens
原文地址:http://blog.51cto.com/9025736/2332867