linux服务器安装Apache (Centos)
参考博客
https://blog.csdn.net/vic_qxz/article/details/80536370
摘要:
1. 安装 4 个包
yum install -y httpd httpd-devel httpd-manual httpd-tools
2. 先编辑一下配置文件/etc/httpd/conf/httpd.conf,在ServerName 那一行加上localhost:80 否则在启动服务的时候会报错
vim /etc/httpd/conf/httpd.conf
3.启动httpd服务
service httpd status
service httpd start
service httpd stop
完了.....
输入:IP地址:80 测试