lnmp
1.0.0
本项目不再增加新功能,仅用于日常维护。推荐使用docker-compose版本。项目链接:https://github.com/linuxeye/bypanel
阿里云ECS推荐
本脚本使用shell编写,为了快速部署LEMP
/ LAMP
/ LNMP
/ LNMPA
/ LTMP
(生产环境中的Linux、Nginx/Tengine/OpenResty、MySQL/MariaDB/Percona、PHP、JAVA),适用于RHEL 7 , 8, 9(包括 CentOS,RedHat,AlmaLinux,Rocky), Debian 9, 10, 11, 12, Ubuntu 16、18、20、22、24 和 Fedora 27+(共 64 个)。
脚本属性:
安装您的发行版的依赖项,下载源代码并运行安装脚本。
yum -y install wget screen
apt-get -y install wget screen
wget http://mirrors.linuxeye.com/lnmp-full.tar.gz
# wget https://downloads.sourceforge.net/project/linuxeye/lnmp-full.tar.gz
tar xzf lnmp-full.tar.gz
cd lnmp
如果安装过程中断开连接,可以执行命令screen -r lnmp
重新连接到安装窗口
screen -S lnmp
如果需要修改目录(安装、数据存储、Nginx日志),请在运行install.sh之前修改options.conf
文件
./install.sh
~ /lnmp/install.sh --mphp_ver 54
~ /lnmp/addons.sh
~ /lnmp/vhost.sh
~ /lnmp/vhost.sh --del
~ /lnmp/pureftpd_vhost.sh
~ /lnmp/backup_setup.sh // Backup parameters
~ /lnmp/backup.sh // Perform the backup immediately
crontab -l // Can be added to scheduled tasks, such as automatic backups every day 1:00
0 1 * * * cd ~ /lnmp/backup.sh > /dev/null 2>&1 &
Nginx/Tengine/OpenResty:
systemctl {start | stop | status | restart | reload} nginx
MySQL/MariaDB/Percona:
systemctl {start | stop | restart | reload | status} mysqld
PostgreSQL:
systemctl {start | stop | restart | status} postgresql
MongoDB:
systemctl {start | stop | status | restart | reload} mongod
PHP:
systemctl {start | stop | restart | reload | status} php-fpm
阿帕奇:
systemctl {start | restart | stop} httpd
雄猫:
systemctl {start | stop | status | restart} tomcat
纯FTPd:
systemctl {start | stop | restart | status} pureftpd
雷迪斯:
systemctl {start | stop | status | restart | reload} redis-server
内存缓存:
systemctl {start | stop | status | restart | reload} memcached
~ /lnmp/upgrade.sh
~ /lnmp/uninstall.sh