部署轻量、高性能的 Web 服务器。
- 更新:
apt update - 安装:
apt install nginx - 启动:
systemctl enable --now nginx - 配置站点:编辑
/etc/nginx/sites-available/default - 测试配置:
nginx -t,然后systemctl reload nginx - 访问:在浏览器中访问你的 IP,查看欢迎页面。
部署轻量、高性能的 Web 服务器。
apt updateapt install nginxsystemctl enable --now nginx/etc/nginx/sites-available/defaultnginx -t,然后 systemctl reload nginxRun this on RackWorks
The LEMP stack installs Nginx, PHP-FPM and MariaDB in one click.