不安装面板,直接部署 Nginx、PHP-FPM、MySQL 和 Redis。
不安装面板,直接部署 Nginx、PHP-FPM、MySQL 和 Redis。 #LNMP 无面板部署 LNMP 无面板部署适合熟悉 Linux 运维、希望服务器尽量轻量的用户。队列直接管理 Nginx、PHP-FPM、MySQL/MariaDB、Redis、站点目录和 WordPress。 推荐环境: Debian 12 或 Ubuntu 22.04/24.04。 Nginx 稳定版。 PHP 8.2 或 PHP 8.1。 MySQL 8.0、MySQL 5.7 或 MariaDB 10.6。 Redis 7。 PHP 扩展:mysqli、pdo_mysql、curl、mbstring、zip、gd、intl、redis、opcache。 #目录结构 txt复制/www/wwwroot/example.com/ ├── index.php ├── wp-config.php └── wp-content/ /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/example.com.conf #Nginx 伪静态 nginx复制server { listen 80; server_name example.com; root /www/wwwroot/example.com; index index.php index.html; location / { try_files $uri $uri/ /index.php?$a