Focus on cloud service provider activities
Notes on website operation and maintenance

OneinStack One click installation of JAVA/Tomcat/Nginx/MySQL website environment

For most users who use VPS hosts, there may be some barriers. After all, most of them are used for building websites. There is a slight technical problem in the transition from virtual hosts to VPS hosts and servers. Basically, we will install a WEB panel or a good one button package in VPS. Among the many one button packages used in China, JunBrother's LNMP is still used more frequently. Secondly, many users have used OneinStack one button package recently.

OneinStack one click package was originally published by the netizen @ yeho in his blog, but now it is provided separately with a domain name. Lao Zuo has also installed it before. Compared with the military brother's LNMP, it has more functions, and you can freely choose the configuration combination, such as our common LNMP (Linux+Nginx+MySQL+PHP), LAMP (Linux+Apache+MySQL+PHP) LNMPA(Linux + Nginx+ MySQL+ PHP+ Apache)、lnmt(Linux + Nginx+ MySQL+ Tomcat)、lnmh(Linux + Nginx+ MySQL+ HHVM)。

As for the installation of LNMP, Lao Zuo has“ One click installation of LNMP/LAMP/LNMPA website environment for CentOS/Debian/Ubuntu system "This article has demonstrated the installation. The installation process is relatively simple. As long as the required environment is configured, it will be automatically installed until the completion. In this article, you will experience the installation of the JAVA environment, including the installation of PHP, MYSQL and other PHP site requirements, so that you can have multi-function requirements.

First, preparations

Here I use Centos 6 64 environment. In fact, this script supports CentOS 5-7, Debian 6-8, and Ubuntu 12-15 environment versions. We can install according to our own preferences and habits.

Second, deploy the script to set the environment

yum -y install wget screen python
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
screen -S oneinstack
./install.sh

Log in to our VPS host SSH directly, drop it into the above environment, and then press Enter to download it automatically.

Third, the process record of deploying JAVA environment

1. Basic environment selection

 Basic environment selection

We set up a new ROOT port according to our own needs to improve the security. Here are a few numbers written randomly. We can write several different numbers according to our own actual situation, but we don't need 22 anyway. Then select NGINX, TOMCAT, JDK and other environment versions.

2. Set database and other configurations

 Set database and other configurations

Here, if we need a PHP environment and a database in the machine, I have installed them together to run PHP or JAVA.

3. Other configuration components

 Other configuration components

According to the actual needs, I will install the required components and cache functions. Then press Enter to install it automatically.

Fourth, the JAVA environment has been installed

 JAVA environment installation completed

If we see such an interface, it means that the JAVA environment has been installed. We can do the same ./vhost.sh Add sites and other operations.

Fifth, common OneinStack user commands

1. How to add a virtual host

./vhost.sh

2. How to delete a virtual host

./vhost.sh del

3. How to manage FTP accounts

./pureftpd_vhost.sh

4. How to back up

A Backup Settings

./backup_setup.sh

B Backup execution

./backup.sh # Start backup, You can add cron jobs
# crontab -l
0 1 * * * cd ~/oneinstack;./ backup.sh  > /dev/null 2>&1 &

To sum up, if we only use the VPS website building environment, we don't have to play very deeply. We can choose several common environments, and then choose several different machines to install. In this way, we can see their own characteristics, and then have targeted choices.

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » OneinStack One click installation of JAVA/Tomcat/Nginx/MySQL website environment