โปรเจ็กต์นี้ไม่เพิ่มฟีเจอร์ใหม่อีกต่อไปและมีไว้สำหรับการบำรุงรักษารายวันเท่านั้น ขอแนะนำให้ใช้เวอร์ชันเขียนนักเทียบท่า ลิงค์โครงการ: https://github.com/linuxeye/bypanel
แนะนำ Aliyun ECS
สคริปต์นี้เขียนโดยใช้เชลล์ เพื่อปรับใช้ 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
คุณสมบัติสคริปต์:
ติดตั้งการขึ้นต่อกันสำหรับ distro ของคุณ ดาวน์โหลดซอร์ส และรันสคริปต์การติดตั้ง
yum -y install wget screenapt-get -y install wget screenwget 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) ให้แก้ไขไฟล์ options.conf ก่อนที่จะรัน install.sh
./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} nginxMySQL/MariaDB/เพอร์โคนา:
systemctl {start | stop | restart | reload | status} mysqldPostgreSQL:
systemctl {start | stop | restart | status} postgresqlMongoDB:
systemctl {start | stop | status | restart | reload} mongodPHP:
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