这里使用的是majaro系统
1、安装nmp
sudo pacman -S nginx php-fpm mariadb php-gd
2、查看本机外网ip
ip address
3、访问一下试试,默认端口是80
nginx配置文件的默认目录是 etc/nginx
4、启动服务
systemctl start nginx
systemctl start php-fpm
systemctl enable nginx
systemctl enable mysqld
systemctl enable php-fpm
外网访问一下试试,发现没法连接
打开ssh服务
systemctl start sshd.service
原文:https://www.cnblogs.com/wang2804355025/p/13150410.html