WDlinux 修改后台默认8080端口的方法

修改8080端口正确方法

新版本:

方法一:

apache 
sed -i 's/8080/8088/' /www/wdlinux/wdapache/conf/httpd.conf

然后记得修改防火墙iptables的端口
sed -i 's/8080/8088/' /etc/sysconfig/iptables
重起iptables
service iptables restart

重起web
service httpd restart
or
service nginxd restart
完成

方法二:

1.编译文件 /www/wdlinux/wdapache/conf/httpd.conf 用vi命令
vi /www/wdlinux/wdapache/conf/httpd.conf
2.搜索8080 命令如下
/8080
3.找到Listen 8080
<VirtualHost *:8080>
将8080修改成自己的端口,例如8090,并保存
(修改命令不会的,自己去查vi命令使用方法!)
4.打开修改后的端口,例如我修改后用到的是8090这个端口,则输入以下命令
iptables -I INPUT -p tcp --dport 8090 -j ACCEPT
5.保存,命令如下
service iptables save
6.service wdapache restart 重启 如果不管事,用reboot重启下服务器试试


//--------------------------------------------------------------------------------


老版本步骤:
wdcp系统默认使用的是8080管理端口,可以通过以下方法修改,如要修改为8000

方法一
vi /www/wdlinux/apache/conf/wdcp.conf
把里面的8080改为8000即可
相应nginx的配置文件在/www/wdlinux/nginx/conf/wdcp

方法二
apache 
sed -i 's/8080/8000/' /www/wdlinux/apache/conf/wdcp.conf
nginx
sed -i 's/8080/8000/' /www/wdlinux/nginx/conf/wdcp.conf

然后记得修改防火墙iptables的端口
sed -i 's/8080/8000/' /etc/sysconfig/iptables
重起iptables
service iptables restart

重起web
service httpd restart
or
service nginxd restart
完成

原文地址:https://www.cnblogs.com/chenjian/p/4325676.html