博客网站的搭建
服务器:Ecs
系统:CentOS 7
部署apache服务
1.安装apache服务(软件包名为http)及拓展包
[root@iZuf6hk94 ~]#yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql
…………省略部分输出信息…………
Complete!
2.启动apache(httpd)服务
[root@iZuf6hk94 ~]#systemctl start httpd.service
3.查看apache服务活动状态
活动状态为running启动成功
[root@iZuf6hk94 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2021-11-26 14:56:12 CST; 9min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2308 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Main PID: 2313 (/usr/sbin/httpd)
Status: "Total requests: 4; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─2313 /usr/sbin/httpd -DFOREGROUND
├─2320 /usr/sbin/httpd -DFOREGROUND
├─2321 /usr/sbin/httpd -DFOREGROUND
├─2322 /usr/sbin/httpd -DFOREGROUND
├─2323 /usr/sbin/httpd -DFOREGROUND
├─2324 /usr/sbin/httpd -DFOREGROUND
├─2336 /usr/sbin/httpd -DFOREGROUND
├─2337 /usr/sbin/httpd -DFOREGROUND
└─2338 /usr/sbin/httpd -DFOREGROUND
Nov 26 14:56:12 iZuf6hk94dizjv77hlitfpZ systemd[1]: Stopped The Apache HTTP Server.
Nov 26 14:56:12 iZuf6hk94dizjv77hlitfpZ systemd[1]: Starting The Apache HTTP Server...
Nov 26 14:56:12 iZuf6hk94dizjv77hlitfpZ httpd[2313]: AH00558: httpd: Could not reliably determine the server's fully qualifie...ssage
Nov 26 14:56:12 iZuf6hk94dizjv77hlitfpZ systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.