Last update at :2024-07-13,Edit by888u
A long time ago, we were accustomed to using ASP programming language when building websites. At that time, most businesses in mainland China provided virtual hosts for Windows systems. With the popularity of PHP open source programs and the emergence of a large number of overseas hosts, we all began to Turning to PHP language programs, the most compatible and better combination in Linux systems is the PHP+MySQL combination, and of course other database forms.
In fact, there are many kinds of website building languages. It is impossible to say which one is good or which one is not good. 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. The OneinStack installation tool that comes to mind here is also a commonly used one. 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 I can run the JSP program. The entire installation process should be the same as when we install regular LAMP and LNMP, except that the options selected during the process are different.
Related articles about OneinStack one-click environment:
1. Installation coexistence and site settings of multiple PHP versions in OneinStack environment
2. Quickly deploy Let\\’s Encrypt domain name SSL certificate in Oneinstack environment
3. Let\\’s Encrypt pan-domain SSL certificate application and quick acquisition with DNSPOD API
First, select the quick installation mode
Automatic mode selection: https://oneinstack.com/auto/
Snail has not visited its official website for a long time, and found that there is an automatic installation mode, and you can directly select the combination. If we are familiar with it, we can choose the traditional mode according to the process customization.
Snail is here to test the installation process, so there are no special requirements for software combinations. If we have special version requirements, we can customize the combination according to our needs.
Second, automatic installation process
1. Enter the 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
Copy the command directly and throw it into SSH for execution. We need other configurations such as SSH port and other combinations according to our needs and then copy them.
2. Execution process
All the processes are installed automatically, we just need to wait. The database password here is the default one I use. We can set our own complex password or modify it later.
Third, create a site
./vhost.sh
Adding a site is still the same as the original tool command, just follow the wizard to add it.
In this way, the JSP/JAVA environment we need is created. We can deploy according to project needs.
Recommended site searches: free domain name, cloud server rental, domain name price, registration-free host in mainland China, domain name and host, Hong Kong cloud host, high-defense server rental, Shandong website registration, renting server, Hong Kong space,
发表评论