Oneinstack One-click installation java/tomcat/nginx/mysql site Environment

Source: Internet
Author: User
Tags centos vps
For the majority of users using VPS host may be a little bit of a threshold, after all, most of them are used to build station requirements, from the virtual host over to the VPS host, server technology a little bit of a problem. Basically we will install the Web panel in the VPS or a good one key package, in the domestic use more of a key package Juntong elder brother Lnmp use or more, followed by a lot of users in the recent time in the use of Oneinstack a key package.

Oneinstack A key package is the user @yeho originally posted in their own blog, now alone with the domain name provided out, the old left before the installation, relative to the LNMP function of the elder brother more, you can freely choose the configuration combination, such as our commonly used LNMP (Linux + nginx+ mysql+ PHP, LAMP (Linux + apache+ mysql+ php), Lnmpa (Linux + nginx+ mysql+ php+ Apache), LNMT (Linux + nginx+ mysql+ Tomcat), l NMH (Linux + nginx+ mysql+ hhvm).

About the installation of LNMP, the old Zoo in the "Centos/debian/ubuntu System one-click Installation Lnmp/lamp/lnmpa Web site Environment" article to demonstrate the installation, the installation process is relatively simple, as long as the configuration of the necessary environment, and then automatically installed up to completion. In this article, you will experience the installation of the Java environment, including the installation of PHP, MySQL and other PHP site requirements, this can be multi-functional requirements.

First, preparatory work

Here I use CentOS 6 64 environment, in fact this script is to support CentOS 5-7, Debian 6-8, Ubuntu 12-15 environment version. We can install according to our own likes and habits.

Second, deployment script settings environment

The code is as follows Copy Code

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

Direct login to our VPS host ssh, and then drop the above environment, and then automatically download after the carriage return.

Third, deploy Java environment process records

1. Basic Environment Selection

We have to set the new root port according to their needs, security improvements, here I am a number of random write, according to our own actual writing a few different numbers, anyway, not 22 can be. Then select the Nginx, TOMCAT, JDK, and other environmental versions.

2, set up the database and other configuration

Here if we also need the machine can have PHP environment and database, I installed together, so can run PHP, can also java.

3, other configuration components

Depending on the actual need to install the required components and caching capabilities, here I will probably choose. Then the carriage return can be installed automatically.

Four, the Java environment installation complete

If we see such an interface, it means that the Java environment is installed. We can do the same./vhost.sh add site operations.

V. Common Oneinstack User commands

1. How to add a virtual host

The code is as follows Copy Code

./vhost.sh

2. How to delete a virtual host

The code is as follows Copy Code

./vhost.sh del

3, how to manage the FTP account

The code is as follows Copy Code

./pureftpd_vhost.sh

4. How to Back up

A Backup settings

The code is as follows Copy Code

./backup_setup.sh

B Backup execution

The code is as follows Copy Code

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

Summary, for us is only the application of VPS Build station environment, not necessarily play how in-depth, select a few commonly used environment, and then different machines can choose to install a few, so you can see their characteristics, and then have the choice for.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.