最近自己要折腾下web服务器的事,顺便就记录一些配置过程
先上环境:
先更新下系统
sudo pacman -Syu
安装apache
sudo pacman -S apache
查看apache 是否安装成功
apachectl -v
或者
httpd -v
我的显示如下:
Server version: Apache/2.4.25 (Unix)
Server built: Dec 20 2016 13:02:22设置开机启动
sudo systemctl enable httpd
sudo systemctl restart httpd查看apacheh是否在运行
sudo systemctl status httpd
设置apache启动文件