linux转apache为非80端口
linux下,1024以下的端口只有root权限用户才能用,这导致一个普通用户无法启动80端口的apache,修改iptables配置可达到目的,例如我的apache端口是8888
vi/etc/sysconfig/iptables
*nat
:PREROUTINGACCEPT[520:36561]
:POSTROUTINGACCEPT[961:78067]
:OUTPUTACCEPT[960:78007]
-APREROUTING-ptcp-mtcp--dport80-jREDIRECT--to-ports8888
-APREROUTING-d127.0.0.1-ptcp-mtcp--dport80-jREDIRECT--to-ports8888
-AOUTPUT-d127.0.0.1-ptcp-mtcp--dport80-jREDIRECT--to-ports8888
COMMIT
相关推荐
夜雨倚琴 2020-09-06
ljlxyf 2020-06-14
LiHansiyuan 2020-06-06
jackadmi 2020-05-07
Antech 2020-05-04
Vampor 2020-04-17
leodengzx 2020-04-16
xcznb 2020-01-06
LandryBean 2020-01-06
jmdvirus 2013-07-22
hithyc 2019-12-28
cheidou 2015-01-15
liuyanwuyu 2015-04-24
89421950 2015-08-03
在旅途 2019-11-08
xiongli 2015-05-18
royrui 2015-06-10
liweihui 2008-03-28