zoukankan      html  css  js  c++  java
  • 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
    完成

  • 相关阅读:
    JS截取字符串常用方法详细整理
    学习网址
    MySQL获取指定长度的字符串的函数left(s,n)和right(s,n)
    MySQL中exists与in的使用
    MySQL DATE_FORMAT() 函数
    MySql 中 case when then else end 的用法
    SQL.Mysql中Cast()函数的用法
    MySql中concat函数的用法(链接字符串)
    TZOJ 3711 浪漫自习(最大流)
    TZOJ 1321 Girls and Boys(匈牙利最大独立集)
  • 原文地址:https://www.cnblogs.com/chenjian/p/4325676.html
Copyright © 2011-2022 走看看