Linux Server Configuration

Source: Internet
Author: User

1. Installing Ssh-server

sudo apt-get install Openssh-server

2.windows a putty

SSH to Linux, server address 192.168.199.208, for the lab WiFi intranet, can be replaced with real IP?

3. Install the FTP server

? ~ sudo apt-get Install pure-ftpd

4. Installing the JDK

Download the JDK on the website and upload it to the FTP server

Create a Java directory: Mkdir/usr/java

Copy the installation package to the Java directory Cp/home/server/jdk-9u40-linux-i586.gz/usr/java

Installing JDK tar zxvf jdk-9u40-linux-i586.gz

Next, configure the JDK environment variables, edit the "/etc/profile" file, and add the JAVA "Java_home", "CLASSPATH" and "PATH" content later. At the end of the " /etc/profile" file, add the following:

# Set Java environment

Export java_home=/usr/java/jdk1.8.0_40

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin

Save and exit, and execute the following command to make its configuration take effect immediately. Source/etc/profile

5. Install Tomcat

First go to "/home/server" directory, "apache-tomcat-7.0.27.tar.gz" Copy to "/usr" under, and then unzip.

Cp/home/server/apache-tomcat-7.0.27.tar.gz/usr

TAR–ZXVF apache-tomcat-7.0.27.tar.gz

RM-RF apache-tomcat-7.0.27.tar.gz

MV apache-tomcat-7.0.27 Tomcat

Chown-r Server:server Tomcat

Then add the Tomcat environment variable, in order to configure the environment variables required by Tomcat after the system starts, set it in the "/etc/profile" file, and make it effective immediately with the "source/etc/profile" command.

# Set Tomcat Environment

Export Catalina_home=/usr/tomcat

Export Catalina_base=/usr/tomcat

Export path= $PATH: $CATALINA _home/bin

Log in to the Linux system with normal "server" and execute the following command to launch the Tomcat we just configured.

startup.sh

Enter "192.168.199.208:8080" in the browser to see if it has started successfully.

Tomcat 's user account information is stored in the tomcat-users.xml file and runs
sudo vim/usr/share/tomcat/conf/tomcat-users.xml

add a line before the </tomcat-users> label

<role rolename= "Admin-gui"/>

<role rolename= "Manager-gui"/>
<user username= " user name " password= " password " roles= "Admin-gui,manager-gui"/>
Save and close. Rerun Tomcat to enter the user name and password and log into the Tomcat Administration page.

6. Installing SOLR

Linux Server Configuration

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.