云服务器搭建wordpress

博客网站的搭建

服务器: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.

4.浏览器访问公网IP
出现apache默认界面为安装成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值