pacman -S net-tools #端口查看工具
sudo pacman -S apache
sudo pacman -S php
sudo pacman -S mysql
Apache配置文件位置
/etc/httpd/conf/httpd.conf
http 服务文件夹
/srv/http/
sudo vim /etc/hosts
修改host文件,添加一个虚拟地址
设置开机启动
sudo systemctl enable httpd
sudo systemctl restart httpd
查看apacheh是否在运行
sudo systemctl status httpd
添加虚拟主机(标准配置):
sudo nano /etc/httpd/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/var/www/test/"
ServerName www.test.com
ServerAlias test.com
<Directory /var/www/test/>
DirectoryIndex index.php index.html
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
sudo systemctl restart httpd
重启apache 访问测试网址
mysql 安装问题百出, 放弃,改用docker
https://www.runoob.com/docker/docker-install-nginx.html 安装全过程
docker中 php 扩展的安装 详情 查看docker hub php镜像说明
phpstrom 安装
yay -S phpstorm
激活:https://blog.csdn.net/qq_33733970/article/details/86751838
汉化:https://blog.csdn.net/u014044812/article/details/80641578
版权声明:本文为qq_35306993原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。