|
9 years ago | |
---|---|---|
conf | 9 years ago | |
functions | 9 years ago | |
init | 9 years ago | |
tools | 9 years ago | |
LICENSE | 9 years ago | |
README.md | 9 years ago | |
apps.conf | 9 years ago | |
backup.sh | 9 years ago | |
backup_setup.sh | 9 years ago | |
install.sh | 9 years ago | |
options.conf | 9 years ago | |
pureftpd_vhost.sh | 9 years ago | |
reset_db_root_password.sh | 9 years ago | |
uninstall.sh | 9 years ago | |
upgrade.sh | 9 years ago | |
vhost.sh | 9 years ago | |
vpn_centos.sh | 9 years ago |
OneinStack is free collection of shell scripts for rapid deployment of LEMP
/LAMP
/LNMP
stacks (Linux
, Nginx
/Tengine
, MySQL
/MariaDB
/Percona
and PHP
) for CentOS/Redhat Debian and Ubuntu.
Script features:
yum -y install wget screen # for CentOS/Redhat
#apt-get -y install wget screen # for Debian/Ubuntu
wget http://mirrors.linuxeye.com/oneinstack.tar.gz
# or download include source packages
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack.tar.gz
# or tar xzf oneinstack-full.tar.gz
cd oneinstack
# Prevent interrupt the installation process. If the network is down,
# you can execute commands `screen -r oneinstack` network reconnect the installation window.
screen -S oneinstack
./install.sh
./vhost.sh
./pureftpd_vhost.sh
./backup_setup.sh # Set backup options
./backup.sh # Start backup, You can add cron jobs
# crontab -l # Examples
0 1 * * * cd ~/lnmp;./backup.sh > /dev/null 2>&1 &
Nginx/Tengine:
service nginx {start|stop|status|restart|reload|configtest}
MySQL/MariaDB/Percona:
service mysqld {start|stop|restart|reload|status}
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}
./upgrade.sh
./uninstall.sh
For feedback, questions, and to follow the progress of the project (Chinese):
OneinStack