1.登录服务器,打开sshd_config文件 # vim /etc/ssh/sshd_config 2.找到#Port 22,默认是注释掉的,先把前面的#号去掉,再插入一行设置成你想要的端口号,注意不要跟现有端口号重复 # The strategy used for options in the default sshd_config shipped with# OpenSSH is to specify options with their default value where# poss…
MySql默认端口号为3306,如果安装多个或者冲突需要修改端口号,修改my.ini的端口号就可以了,文件一般情况下在安装目录下.下面是具体说明: 方法/步骤 先在服务里停止mysql的服务器,再找到mysql安装目录下面的my.ini文件,把里面的端口号3306替换成其它的端口号. 修改下面两个地方:[client] port=3306 [mysqld] # The TCP/IP Port the MySQL Server will listen onport=3306 3 如果提示修改不了可…