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