signed

QiShunwang

“诚信为本、客户至上”

建站-环境搭建

2021/4/26 23:10:25   来源:

建站-环境搭建

apache的开启与配置

#安装阿帕奇
sudo apt-get install apache2
sudo /etc/init.d/apache2 start[ stop | restart status ]
#或
service apache2 start[ stop | restart | status ]

sudo apt-get install php5


插入:ubuntu管理启动项

#查看启动项服务
systemctl list-unit-files
systemctl list-unit-files --type=service|grep enabled
#禁用apache
systemctl list-unit-files --type=service|grep enabled
#查看.service的内容和路径
systemctl status apache2.service
#禁用开机启动
sudo systemctl disable apache2.service
#停止已开启的服务
sudo systemctl stop apache2.service

WordPress

安装包链接