修改DirectAdmin默认的端口2222方法如下:
Run this to achieve the desired:
Code:
<code>cd /usr/local/directadmin/conf/ vi ./directadmin.conf</code>
in the file find the line with
Code:
<code>port=2222</code>
change it to something you want, for example
Code:
<code>port=9999</code>
save, exit and restart directadmin
Code:
<code>killall -9 directadmin /etc/init.d/directadmin start</code>
Make sure to open port 9999 with firewall and try to access Directamin in a browser.
最一点,确保你的9999端口在防火墙已经开启。
Qi 问的问题 2020年9月30日