Zi 字媒體
2017-07-25T20:27:27+00:00
當Apache安裝也啟動之後,在設定都正常的狀況下仍無法啟動網頁,這種情況通常都是防火牆的阻擋所致。
首先查看防火牆資訊,是否有打開80port
/etc/init.d/iptables status
#或
iptables -L
若沒有就必須開啟80 port
#編輯防火牆
vim /etc/sysconfig/iptables
加入Rule(防火牆設定可參考這篇)
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
重開防火牆
/etc/init.d/iptables restart
也可以直接把防火牆關掉(重開機時也不會啟動)
#關閉防火牆
chkconfig --level 35 iptables off
Categories: Linux
分類
Android
AngularJS
API Blueprint
Chrome
Database
MySQL
DataStructure
Docker
Editor
Vim
Firefox
Git
GitLab
Google API
Hadoop
Language
Go
Java
JavaScript
jQuery
jQueryChart
Node.js
Vue
PHP
Laravel
ZendFramework
Python
Mac
Network
Cisco
DLink
Juniper
Oauth
Server
Apache
Share
Unix
FreeBSD
Linux
WebDesign
Bootstrap
CSS
HTML
Wordpress
Search
搜尋關鍵字:
寫了
5860316篇文章,獲得
23313次喜歡