修改/etc/ssh/sshd_config配置文件(注意:这里是sshd_config,而不是ssh_config) vi /etc/ssh/sshd_config 在sshd_config文件中添加一个端口号2222(这里保留22端口,是为了放置假如配置失败的话,还可以使用22端口使用ssh登录,配置完成后,可以删除22端口) Port 22 Port 2222 重启 ssh 服务: systemctl restart sshd.service
1.marathon文档:https://mesosphere.github.io/marathon/docs/native-docker.html Static port mapping: It's also possible to specify non-zero host ports. When doing this you must ensure that the target ports are included in some resource offers! The Mesos s
linux 修改mysql默认端口3306 cd /etc/mysql/my.cnf 修改两处 客户端的port=3306 和mysqld的服务器端口port=3306 [client] port=3306 [mysqld] port=3306 重启mysql服务器即可 sudo service mysql restart