In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Because of personal needs, so JDK, Tomcat installed together, the steps are not difficult.
The following steps are for reference only, thinking that personal understanding of Linux system is not enough, so dare not say, haha
CentOS is installed by default. If not, please refer to blog.51cto.com/13886506/2441326
1. Preparation
jdk-8u65-linux-x64.tar.gz
Baidu Network Disk: Link: pan.baidu.com/s/1e0-8K-cKAk_UQ__3h_tLqg
Extraction code: guyn
apache-Linux_tomcat-7.0.55.tar.gz
Baidu Network Disk: Link: pan.baidu.com/s/19SBvOPUdwhFnu69KmqOgsQ
Extraction code: n7u5
The above links are for reference only, or you can download them from the official website.
2. Start installation
At this point you can use the system comes with the terminal, personal preference to use the third-party software FinalShell, this software interested can be downloaded at http://www.hostbuf.com/.
Using this software, you can use the Linux terminal to enter the ifconfig command to view the IP where the Linux system is located, and then use the IP address to log in on the FinalShell.
I will not repeat it here to avoid the suspicion of putting the cart before the horse. If you don't understand it, you can Baidu yourself, or privately believe me.
3. Put the compressed package file into the Linux system, use the ls command to view the file directory under the current folder, and then enter the next level directory by cd folder name/, use the mkdir directory name to create a file or folder, and then drag the two files on the virtual machine desktop before, and move the files to the directory you want to move to by mv, so as to facilitate the management and maintenance of files later.
Move to the directory where the file is located by cd command and extract the compressed file using tar -xvf compressed filename
Get the current JAVA_HOME directory.
Enter the decompressed jdk1.8.0_65 folder by cd command, and enter pwd command to obtain the current directory, i.e. JAVA_HOME directory.
Then replace the path you obtained with the following/root/java_tool/jdk1.8.0_65, and then put the following three lines of modified code in Notepad, which will be used soon.
export JAVA_HOME= /root/java_tool/jdk1.8.0_65
export CLASSPATH=$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin
Go back to the terminal console, enter vim /etc/profile to modify the environment variables. The profile file is equivalent to the environment variable directory in windows. Find #set java env in the figure below, and then copy the modified code of the above three lines to the pasting board. Move the cursor to the position you want to write. Press the English letter i key on the keyboard, ctrl+shift+v Paste.
Then press the ESC key in the upper left corner of the keyboard, and then enter: wq save exit
5. Verify that JDK installation is successful
Type reboot to restart the system
Enter java -version
Enter javac
Congratulations, JDK installation is successful!
Then, follow step 3 to extract apache-Linux_tomcat-7.0.55.tar.gz
6. This step is to modify the default port of Tomcat. 8080 -> 80 is convenient for browsers to access. If you have no requirements, you can skip this step.
Use cd to move to the conf directory under Tomcat and modify server.xml with vim server.xml
Find the file, as shown in the figure, press i to modify the file, change the arrow 8080 to 80, and then press ESC: wq to save and exit.
Start and restart Tomcat
The cd command moves to the bin directory under Tomcat and enters./ startup.sh Start Tomcat
And then... shutdown.sh Close Tomcat and type./again startup.sh Start Tomcat
8. Verify that the installation is successful
Open the Firefox browser that comes with the system, enter: localhost and enter in the address bar to see if the interface below will appear. If it appears, the installation is successful. Otherwise, check it again according to the above steps.
(If the port number is not modified in step 6, enter localhost:8080 to access)
If there is any mistake in the above operation, welcome to point out enthusiastically and make progress together. Thank you.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Implement #! / bin/sh###ShellName:Square#Author:zkg#Cr with + sign
© 2024 shulou.com SLNews company. All rights reserved.