No Description

lj2007331 698e90833e Update redis 2.8.21 to 3.0.2 10 years ago
conf 698e90833e Update redis 2.8.21 to 3.0.2 10 years ago
functions 25755d578a Update phpMyAdmin 4.4.9 to 4.4.10 10 years ago
init 395e77de39 first commit 10 years ago
tools 395e77de39 first commit 10 years ago
LICENSE 0f2358889e Initial commit 10 years ago
README.md b69e31a0cb Update upgrade sh 10 years ago
apps.conf 698e90833e Update redis 2.8.21 to 3.0.2 10 years ago
backup.sh 395e77de39 first commit 10 years ago
backup_setup.sh 395e77de39 first commit 10 years ago
install.sh 395e77de39 first commit 10 years ago
options.conf 395e77de39 first commit 10 years ago
pureftpd_vhost.sh 395e77de39 first commit 10 years ago
reset_db_root_password.sh b69e31a0cb Update upgrade sh 10 years ago
uninstall.sh 395e77de39 first commit 10 years ago
upgrade.sh b69e31a0cb Update upgrade sh 10 years ago
vhost.sh 395e77de39 first commit 10 years ago
vpn_centos.sh 395e77de39 first commit 10 years ago

README.md

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:

  • Constant updates
  • Source compiler installation, most source code is the latest stable version, and downloaded from the official website
  • Fixes some security issues
  • You can freely choose to install database version (MySQL-5.6, MySQL-5.5, MariaDB-10.0, MariaDB-5.5, Percona-5.6, Percona-5.5)
  • You can freely choose to install PHP version (php-5.3, php-5.4, php-5.5, php-5.6, php-7/phpng(alpha))
  • You can freely choose to install HHVM version (CentOS6.5 64bit, CentOS7 64bit)
  • You can freely choose to install Nginx or Tengine
  • You can freely choose to install Apache version (Apache-2.4, Apache-2.2)
  • You can freely choose to install Tomcat version (Tomcat-8, Tomcat-7)
  • You can freely choose to install JDK version (JDK-1.6, JDK-1.7, JDK-1.8)
  • According to their needs can to install ZendOPcache, xcache, APCU, eAccelerator, ionCube and ZendGuardLoader (php-5.4, php-5.3)
  • According to their needs can to install Pureftpd, phpMyAdmin
  • According to their needs can to install memcached, redis
  • According to their needs can to optimize MySQL and Nginx with jemalloc or tcmalloc
  • Add a virtual host script provided
  • Nginx/Tengine, PHP, Redis, phpMyAdmin upgrade script provided
  • Add backup script provided

How to use

   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

How to add a virtual host

   ./vhost.sh

How to add FTP virtual user

   ./pureftpd_vhost.sh

How to backup

   ./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 &

How to manage service

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}

How to upgrade

   ./upgrade.sh

How to uninstall

   ./uninstall.sh

Installation

For feedback, questions, and to follow the progress of the project (Chinese):
OneinStack