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

OneinStack One click deployment of JSP/JAVA (Tomcat) website environment

A long time ago, we used to use ASP program language when building websites. At that time, most domestic businesses were providing virtual hosts for Windows systems. With the popularity of PHP open source programs and the emergence of a large number of overseas hosts, we began to turn to PHP language programs. Among them, PHP+MySQL combination is more compatible in Linux systems, Of course, other database forms are also included.

In fact, there are many kinds of website building languages. You can't say which is good or which is bad. Some projects have their own advantages. Today, I met a netizen who needs a JSP language environment, which also supports building in a Linux server. Here I think of the OneinStack installation tool, which is also commonly used. It supports one click installation of lnmt (Tomcat), and can run JSP programs.

So in this article, I will try to install and finally simply test whether the JSP program can run. The entire installation process should be the same as the installation of regular LAMP and LNMP, except that the options are different during the process.

Articles related to OneinStack one click environment:

1、 Installation coexistence of multiple PHP versions in OneinStack environment and site settings

2、 Rapid deployment of Let's Encrypt universal domain name SSL certificate in Oneinstack environment

3、 Let's Encrypt Universal Domain Name SSL Certificate Application Cooperate with DNSPOD API to quickly obtain

First, select the quick installation mode

Automatic mode selection: https://oneinstack.com/auto/

Lao Zuo has not visited his official website for a long time, and found that there is an automatic installation mode, which can be combined directly. If we are familiar with it, we can customize the traditional mode according to the process.

 OneinStack One click deployment of JSP/JAVA (Tomcat) website environment and simple test

Lao Zuo tests the installation process here, so there is no special requirement for software combination. If we have special version requirements, we can customize the combination according to needs.

Second, the automatic installation process

1. Enter script directly

wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./ oneinstack/install.sh --nginx_option 1 --tomcat_option 2 --jdk_option 2 --db_option 2 --dbinstallmethod 1 --dbrootpwd oneinstack --pureftpd --redis --memcached --iptables --reboot

The direct copy command is dropped to SSH for execution. We need other configurations, such as SSH ports and other combinations, to set and copy as needed.

2. Execution process

 OneinStack One Click Deployment JSP/JAVA (Tomcat) Website Environment - Page 2

All processes are automatically installed. We just need to wait. The database password here is my default. We can set our own complex password or modify it later.

Third, create a site

./vhost.sh

 OneinStack One Click Deployment JSP/JAVA (Tomcat) Website Environment - Page 3

The tool command to add a site is the same as the original one. You can add it according to the wizard.

 OneinStack One Click Deployment JSP/JAVA (Tomcat) Website Environment - Page 4

In this way, the JSP/JAVA environment we need has been created. We can deploy according to the project needs.

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 deployment of JSP/JAVA (Tomcat) website environment


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge