In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Let's wrap tomcat and jdk up first.
http://tomcat.apache.org/download-70.cgi
http://www.Oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
install the JDK
[root@kurolz ~]# ls jdk*jdk-8u131-linux-x64.rpm[root@kurolz ~]# rpm -ivh jdk-8u131-linux-x64.rpm
Configure environment variables
[root@kurolz ~]# vim /etc/profileexport JAVA_HOME=/usr/java/defaultexport JAVA_BIN=$JAVA_HOME/binexport PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=.:$ JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH[root@kurolz ~]# source /etc/profile[root@kurolz ~]# java -versionjava version "1.8.0_131"Java(TM) SE Runtime Environment (build 1.8.0_131-b11)Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Extract and install tomcat
[root@kurolz ~]# tar -zxvf apache-tomcat-7.0.77.tar.gz[root@kurolz ~]# cd apache-tomcat-7.0.77[root@kurolz ~]# cd apache-tomcat-7.0.77/bin/[root@kurolz bin]# ./ startup.shUsing CATALINA_BASE: /root/apache-tomcat-7.0.77Using CATALINA_HOME: /root/apache-tomcat-7.0.77Using CATALINA_TMPDIR: /root/apache-tomcat-7.0.77/tempUsing JRE_HOME: /usr/java/defaultUsing CLASSPATH: /root/apache-tomcat-7.0.77/bin/bootstrap.jar:/root/apache-tomcat-7.0.77/bin/tomcat-juli.jarTomcat started.
Turn off the firewall or add a line allowing port 8080 to pass through
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
[root@kurolz bin]# service iptables stopiptables: Clear firewall rules: [OK]iptables: Set chain to policy ACCEP: filter [OK]iptables: unloading modules: [OK]
Browser test: http://ip:8080
Add web management account and role, and then write the following 2 items in the label, specify
[root@kurolz ~]# vim apache-tomcat-7.0.77/conf/tomcat-users.xml
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
© 2024 shulou.com SLNews company. All rights reserved.