Sin descripción

molloc a5dee18c4a Fix GlobalNamingResources configuration in the server.xml. hace 10 años
conf a5dee18c4a Fix GlobalNamingResources configuration in the server.xml. hace 10 años
functions df9c149083 Change mariadb download addr hace 10 años
init 850aaff2d9 [fixed] vhost.sh bug hace 10 años
tools cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
LICENSE 0f2358889e Initial commit hace 10 años
README.md b69e31a0cb Update upgrade sh hace 10 años
apps.conf cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
backup.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
backup_setup.sh df9c149083 Change mariadb download addr hace 10 años
install.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
options.conf cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
pureftpd_vhost.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
reset_db_root_password.sh b69e31a0cb Update upgrade sh hace 10 años
uninstall.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
upgrade.sh b69e31a0cb Update upgrade sh hace 10 años
vhost.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 hace 10 años
vpn_centos.sh 395e77de39 first commit hace 10 años

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