1. Install the apache main program httpd
yum install httpd
2. Start and close the
settings to start the
systemctl enable httpd start/stop
restart
systemctl start/stop/restart httpd
3. Store your own web page directory in the /var/www/html directory to access it Create a
new test web page
cd /var/www/html
echo "hello world!" >helloworld.html
4. Access the test web page helloworld.html
http://192.168.1.119/helloworkd.html from any computer in the LAN
Note : 192.168.1.119 is the ip of the apache server on the LAN
View ip command ip addr
Centos7 set up apache server
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326681258&siteId=291194637
Recommended
Ranking