修改 ssh 22 端口
vi /etc/ssh/sshd_config
Port xxxx
sysemctl restart sshd
修改 git 对应端口 vi /.git/config
url = ssh://git@server:xxxx/root/test.git
rsync 指定端口
rsync -e 'ssh -p xxxx'
ssh 指定端口
ssh -p xxxx root@server "systemctl restart heepark"
修改 MySQL 3306 端口
vi /etc/my.cnf.d/server.cnf
[mysqld]
port=xxxx
systemctl restart mariadb