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:端口号开启:

小白经验

 

相关文章:

  • 2021-09-20
  • 2021-09-10
  • 2021-07-10
  • 2021-10-23
  • 2021-11-13
  • 2021-11-22
  • 2021-07-05
  • 2021-11-24
猜你喜欢
  • 2021-06-23
  • 2021-07-04
  • 2021-07-31
  • 2022-12-23
  • 2021-09-05
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案