Experience one-click php/java environment installation tool oneinstack

Overview

In fact, I heard about this thing a long time ago, but I have never tried to use it. I have been using the lnmp one-click installation package , but the lnmp one-click installation package is to install the java environment, and oneinstack is more powerful.

Official website

https://oneinstack.com/

Environmental preparation

First, use vagrant to create a virtual machine. If you don't use vagrant, then just search for the keyword vagrant in my blog. vagrant box add ubuntu/xenial64 vagrant init ubuntu/xenial64 vagrant up vagrant sshIn fact, specific operation is similar to docker-machine, that is, it is for virtual machines instead of containers.

using oneinstack

In fact, the source code of oneinstack is stored in many places, such as Alibaba Cloud and Youpaiyun in China, Linode and Sourceforge abroad, so there is no such thing as slow download of source code when I use a foreign server, or slow download of source code when I use a domestic server. The question is really conscientious. I downloaded it from the cloud again. The wget http://mirrors.linuxeye.com/oneinstack-full.tar.gzgeneral download speed is full speed. After the download is complete, decompress tar -zxvf oneinstack-full.tar.gzit and execute the installation script.sudo ./install.sh

#######################################################################
#       OneinStack for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+      #
#       For more information please visit https://oneinstack.com      #
#######################################################################

Please input SSH port(Default: 22): 22

Do you want to enable iptables? [y/n]: n

Do you want to install Web server? [y/n]: y

Please select Nginx server:
	1. Install Nginx
	2. Install Tengine
	3. Install OpenResty
	4. Do not install
Please input a number:(Default 1 press Enter) 1

Please select Apache server:
	1. Install Apache-2.4
	2. Install Apache-2.2
	3. Do not install
Please input a number:(Default 3 press Enter) 3

Please select tomcat server:
	1. Install Tomcat-9
	2. Install Tomcat-8
	3. Install Tomcat-7
	4. Install Tomcat-6
	5. Do not install
Please input a number:(Default 5 press Enter) 5

Do you want to install Database? [y/n]: y

Please select a version of the Database:
	 1. Install MySQL-8.0
	 2. Install MySQL-5.7
	 3. Install MySQL-5.6
	 4. Install MySQL-5.5
	 5. Install MariaDB-10.2
	 6. Install MariaDB-10.1
	 7. Install MariaDB-10.0
	 8. Install MariaDB-5.5
	 9. Install Percona-5.7
	10. Install Percona-5.6
	11. Install Percona-5.5
	12. Install AliSQL-5.6
	13. Install PostgreSQL
	14. Install MongoDB
Please input a number:(Default 2 press Enter) 3
Please input the root password of MySQL(default: VHnnHFMN): woyaoxuehuilinux

Please choose installation of the database:
	1. Install database from binary package.
	2. Install database from source package.
Please input a number:(Default 1 press Enter) 2

Do you want to install PHP? [y/n]: y

Please select a version of the PHP:
	1. Install php-5.3
	2. Install php-5.4
	3. Install php-5.5
	4. Install php-5.6
	5. Install php-7.0
	6. Install php-7.1
	7. Install php-7.2
Please input a number:(Default 5 press Enter) 7

Do you want to install opcode cache of the PHP? [y/n]: y

Do you want to install ionCube? [y/n]: n

Do you want to install ImageMagick or GraphicsMagick? [y/n]: n

Do you want to install Pure-FTPd? [y/n]: n

Do you want to install phpMyAdmin? [y/n]: n

Do you want to install redis? [y/n]: n

Do you want to install memcached? [y/n]: n

Do you want to install HHVM? [y/n]: n

In short, this script has a lot of options, and it has a lot of options compared to the lnmmp one-click installation package. It is really convenient to use this to deploy a web environment, but I personally think that these are not its most awesome places, but its most awesome. The place is some little script for it

small script

After the environment is deployed, you must manage the environment, such as website backup, ftp account management, etc. Yes, it can be done. Sometimes it is not considered during installation, some extensions of php are omitted, or some extensions of php are omitted during installation. When you do not choose to install ftp, phpmyadmin and other components, you can execute the following script ./addons.shto add some components. It is very troublesome when configuring virtual hosts. When you do not want to write configuration files, you can execute the following script ./vhost.shwhen you want to delete virtual hosts. When you ./vhost.sh delwant to add an account to the ftp service, you can do this ./pureftpd_vhost.sh. Of course, website backup is very important. You can execute the following script to backup your website . ./backup_setup.shOf course, it is easy to install and update, as long as you execute the following script, ./upgrade.shhow about uninstalling? ./uninstall.shIn addition to the above, there is a more powerful function, you will know by looking at the following URLhttps://oneinstack.com/auto

Welcome to follow Bboysoul's blog www.bboysoul.com Have Fun

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325696550&siteId=291194637