宝塔服务器安装LNMP流程是怎样的?一键部署Nginx、MySQL、PHP。
宝塔LNMP极速安装指南:
优化建议:安装后执行
步骤 | 操作路径 | 注意事项 |
---|---|---|
1. 环境准备 | 纯净CentOS/Ubuntu系统(内存≥1GB) | 关闭selinux和防火墙初始状态 |
2. 安装宝塔 | wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh |
保存显示的入口账号密码 |
3. 套件选择 | 软件商店→"LNMP"分类→勾选Nginx+MySQL+PHP | PHP版本需与程序兼容(如WP建议7.4) |
4. 参数配置 | MySQL设置root密码/PHP选择扩展(如opcache) | 记录数据库密码到安全位置 |
5. 完成验证 | 访问http://服务器IP:8888 进入面板 |
立即修改默认面板端口和账号 |
bt default
重置安全入口。更新时间:2025-07-14 13:46:23
上一篇:网站登录密码怎么显示