Make your own website The second step * * * * required software on Linux and Deployment project configuration * *

Source: Internet
Author: User

After purchasing your own server, if you want to run the project, you have to install some necessary software.

Here are just a few of the most basic and essential ones. The rest can be tailored to your needs.

installation is used.

  

First of all, that's the configuration of the JDK, we can use some tools to download the Linux version of the JDK package

Pull into the Linux directory. Of course this is the most convenient. However, you can also download Oracle JDK directly online

If this cloud server is the first time to install the software, then there may be a failure to download or download error

If this occurs, you can update the following cloud server repository using the command: Apt-get update

You can do it. After the update, you can download it.

  

If you are using a command:

Wget-c Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-lin

ux-i586.tar.gz Direct download is not possible, because Oracle is not allowed to download directly through the URL,

This is used to download an HTML page, rather than the installation package we need. So it must be

Make some changes and change the cookies slightly. The concrete way does not introduce here. Details can be private.

Once downloaded, you will also need to download the Web container, where Tomcat is used. The command is:

wget Http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.39/bin/apache

-tomcat-7.0.39.tar.gz

Then LS to view its own Linux home directory will appear in the download of a good package.

Enter the command TAR-XVF the package name and unzip the file. After the decompression is complete, you can see the extracted files in this directory

Clip. Because the name will be very long after decompression, it is recommended to change the name of the package. Input command: MV file name,

Move the modified file to the local of use in the root directory. Here's how:

You can switch to the root directory, because I use the root account so there is no problem of insufficient permissions, if the non-

Root account, you need to add sudo to the command before you can manipulate some higher-level files or operations.

Input command: cd/usr/local/switch to this directory.

Cut the two packets in the home directory under the current directory. Input command:mv ~/jdk1.7. this

The dots represent the current place. Cut two packets to this place in turn. In this way, Ls-l shows that two packets have moved over.

Move it over to the same as on Windows, configure environment variables. Input command: Vim/etc/profile, go to page,

Press the letter I of the keyboard to edit it. Add the location where the JDK is installed. :

Then press the ESC key to enter: Wq to save and exit. Of course, if this is not the end, you have to make the configuration effective. Input

Command: Source/etc/profile make it effective.

This allows you to enter the Java test if the installation was successful. If there is a long list of things and no error is the configuration is successful.

  

After installing the JDK and Tomcat, you can basically get an HTML static Web page hanging on the server, if you need to have data

, you must install the database to complete. The method of installing the database configuration here is temporarily not described.

At this point, you can make a written project (JSP or HTML format) into a war package (the packaging method has been said before,

You can view the previous log), and then place the war package under Tomcat's WebApps directory. Then switch to the Bin directory and enter:

./startup.sh start Tomcat. So the project started up. Enter in Chrome: Extranet IP Address: 8080/project name,

To access the deployed project.

    Here about the port number, access path, and binding multiple domain names, upload multiple project access, temporarily do not introduce, will later

Go on

Make your own website The second step * * * * required software on Linux and Deployment project configuration * *

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.