|
|
3 năm trước cách đây | |
|---|---|---|
| .github | 6 năm trước cách đây | |
| config | 4 năm trước cách đây | |
| include | 3 năm trước cách đây | |
| init.d | 4 năm trước cách đây | |
| src | 3 năm trước cách đây | |
| tools | 4 năm trước cách đây | |
| .gitignore | 8 năm trước cách đây | |
| LICENSE | 10 năm trước cách đây | |
| README.md | 3 năm trước cách đây | |
| addons.sh | 4 năm trước cách đây | |
| backup.sh | 4 năm trước cách đây | |
| backup_setup.sh | 3 năm trước cách đây | |
| install.sh | 3 năm trước cách đây | |
| options.conf | 3 năm trước cách đây | |
| pureftpd_vhost.sh | 4 năm trước cách đây | |
| reset_db_root_password.sh | 4 năm trước cách đây | |
| uninstall.sh | 3 năm trước cách đây | |
| upgrade.sh | 4 năm trước cách đây | |
| versions.txt | 3 năm trước cách đây | |
| vhost.sh | 4 năm trước cách đây |
This script is written using the shell, in order to quickly deploy LEMP/LAMP/LNMP/LNMPA/LTMP(Linux, Nginx/Tengine/OpenResty, MySQL in a production environment/MariaDB/Percona, PHP, JAVA), applicable to CentOS 7 ~ 8(including redhat,AlmaLinux,Rocky), Debian 8 ~ 11, Ubuntu 16 ~ 21, Fedora 27+ of 64.
Script properties:
Install the dependencies for your distro, download the source and run the installation script.
yum -y install wget screen
apt-get -y install wget screen
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
If you disconnect during installation, you can execute the command screen -r lnmp to reconnect to the install window
screen -S oneinstack
If you need to modify the directory (installation, data storage, Nginx logs), modify options.conf file before running install.sh
./install.sh
~/oneinstack/install.sh --mphp_ver 54
~/oneinstack/addons.sh
~/oneinstack/vhost.sh
~/oneinstack/vhost.sh --del
~/oneinstack/pureftpd_vhost.sh
~/oneinstack/backup_setup.sh // Backup parameters
~/oneinstack/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 ~/oneinstack/backup.sh > /dev/null 2>&1 &
Nginx/Tengine/OpenResty:
service nginx {start|stop|status|restart|reload|configtest}
MySQL/MariaDB/Percona:
service mysqld {start|stop|restart|reload|status}
PostgreSQL:
service postgresql {start|stop|restart|status}
MongoDB:
service mongod {start|stop|status|restart|reload}
PHP:
service php-fpm {start|stop|restart|reload|status}
Apache:
service httpd {start|restart|stop}
Tomcat:
service tomcat {start|stop|status|restart}
Pure-FTPd:
service pureftpd {start|stop|restart|status}
Redis:
service redis-server {start|stop|status|restart|reload}
Memcached:
service memcached {start|stop|status|restart|reload}
~/oneinstack/upgrade.sh
~/oneinstack/uninstall.sh
For feedback, questions, and to follow the progress of the project:
Telegram Group
OneinStack