Нет описания

lj2007331 f7673f1ac5 Add Shadowsocks 10 лет назад
conf a5dee18c4a Fix GlobalNamingResources configuration in the server.xml. 10 лет назад
functions f7673f1ac5 Add Shadowsocks 10 лет назад
init 7d9a04dcc1 lj2007331 10 лет назад
tools cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 10 лет назад
LICENSE 0f2358889e Initial commit 10 лет назад
README.md b69e31a0cb Update upgrade sh 10 лет назад
apps.conf 7d9a04dcc1 lj2007331 10 лет назад
backup.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 10 лет назад
backup_setup.sh df9c149083 Change mariadb download addr 10 лет назад
install.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 10 лет назад
options.conf cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 10 лет назад
pureftpd_vhost.sh cf5f88230d Update php 7.0.0alpha1 to 7.0.0alpha2 10 лет назад
reset_db_root_password.sh b69e31a0cb Update upgrade sh 10 лет назад
shadowsocks.sh f7673f1ac5 Add Shadowsocks 10 лет назад
uninstall.sh 7d9a04dcc1 lj2007331 10 лет назад
upgrade.sh b69e31a0cb Update upgrade sh 10 лет назад
vhost.sh ec105b81f5 Fixed Nginx PATH 10 лет назад

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