Little white experience

yum -y install httpd #install apache

systemctl start httpd #Start the service

systemctl enable httpd #Set boot up

The above is the prelude, the following describes how to start the service:

1. Turn off the firewall first:

systemctl stop firewalld

2. View the firewall status:

systemctl status firewalld

3. Set to disable the firewall at boot:

systemctl disable

4. Check the port number:

netstat -ntlp

5. Use IP: port number to open:

 

Guess you like

Origin blog.csdn.net/qq_41663470/article/details/108691971