emos修改端口

 

修改默认80端口的小经验-很详细
因为我公司的的路由管理端口是80,所以我得把邮件的访问地址改成其他端口(8080端口):
注:全部操作在英文半角状态下操作
==================================================
vi /etc/httpd/conf/httpd.conf                                                                                #打开httpd 文件
按            ESC    键                                                                                             #
按               /        键                                                                                            #     
输入         80       回车                                                                                         #
按字母       i         键                                                                                            #切换到可编辑状态
按方向上下键,查看寻找到的80字符,并全部修改成8080
按            ESC     键                                                                                            #
输入            :   (冒号)                                                                                   #
输入小写   wq       回车                                                                                        #修改完保存退出 

vi /etc/httpd/conf/vhost_extmail.conf                                                                   #打开vhost_extmail.conf文件
按字母       i         键                                                                                            #切换到可编辑状态
把修改<VirtualHost *:80>修改为<VirtualHost *:8080>                                         
按            ESC     键                                                                                            #
输入            :   (冒号)                                                                                   #
输入小写   wq       回车                                                                                       #保存退出

vi /etc/sysconfig/iptables                                                                                    #打开防火墙规则文件
按字母       i         键                                                                                           #切换到可编辑状态
将‘-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT’中的80改为8080.
按            ESC     键                                                                                           #
输入            :   (冒号)                                                                                  #
输入小写   wq       回车                                                                                      #保存退出

/etc/rc.d/init.d/httpd restart                                                                                #重启httpd服务 
/etc/rc.d/init.d/iptables restart                                                                            #重启防火墙


OK现在就可以在你的浏览器地址栏输入:http://地址:8080

 

相关关键字: 端口  httpd  冒号  EMOS  conf  端口  httpd  冒号  EMOS  conf 

你可能感兴趣的:(职场,休闲,EMOS)