安装apache
1.安装:(httpd是Apache在centos中的名字)
yum install httpd
2.启动:
service httpd start
3.网页访问80端口:172.20.73.243 LINUX的IP地址
查询防火墙80端口是否启用:
netstat -anpl | grep ‘http’
4.如果已启用,则是防火墙阻碍访问,关闭防火墙即可。
Service firewalld stop
安装apache
1.安装:(httpd是Apache在centos中的名字)
yum install httpd
2.启动:
service httpd start
3.网页访问80端口:172.20.73.243 LINUX的IP地址
查询防火墙80端口是否启用:
netstat -anpl | grep ‘http’
4.如果已启用,则是防火墙阻碍访问,关闭防火墙即可。
Service firewalld stop