|
преди 4 години | |
---|---|---|
.github | преди 5 години | |
config | преди 5 години | |
include | преди 4 години | |
init.d | преди 6 години | |
src | преди 5 години | |
tools | преди 5 години | |
.gitignore | преди 7 години | |
LICENSE | преди 9 години | |
README.md | преди 4 години | |
addons.sh | преди 4 години | |
backup.sh | преди 5 години | |
backup_setup.sh | преди 5 години | |
install.sh | преди 4 години | |
options.conf | преди 4 години | |
pureftpd_vhost.sh | преди 4 години | |
reset_db_root_password.sh | преди 4 години | |
uninstall.sh | преди 4 години | |
upgrade.sh | преди 5 години | |
versions.txt | преди 4 години | |
vhost.sh | преди 4 години |
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 6 ~ 8(including redhat), Debian 8 ~ 10, Ubuntu 14 ~ 19, Fedora 27+ of 32 and 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}
HHVM:
#centos7
systemctl {start|stop|status|restart} hhvm
#centos6
service supervisord {start|stop|status|restart|reload}
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