小白经验

yum -y install httpd  #安装apache

systemctl start  httpd #启动服务

systemctl enable httpd #设置开机启动

以上是前奏,下面开始介绍如何启动服务:

1.先关闭防火墙:

systemctl stop firewalld

2.查看防火墙状态:

systemctl status firewalld

3.设置开机禁用防火墙:

systemctl disable

4.查看端口号:

netstat -ntlp

5.利用IP:端口号开启:

猜你喜欢

转载自blog.csdn.net/qq_41663470/article/details/108691971
今日推荐