部署轻量、高性能的 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 nginx这篇指南对你有帮助吗?
感谢你的反馈!
Enter your details to chat with our support team
Leave us a message and we'll get back to you
Thank you for reaching out. We'll respond to your email as soon as possible.