阿里云CentOS7.4配置Java Web环境总结

阿里云CentOS7.4配置Java Web环境总结

MySQL5.7.22 + JDK1.8.0_171 + Tomcat8.5

1.CentOS 7.4使用yum源安装MySQL 5.7.20:https://www.linuxidc.com/Linux/2017-12/149614.htm

2.全新服务器 centos 7.4 配置(一…


1.CentOS 7.4使用yum源安装MySQL 5.7.20:https://www.linuxidc.com/Linux/2017-12/149614.htm

2.全新服务器 centos 7.4 配置(一) java环境配置:https://my.oschina.net/u/2329969/blog/1620124

3.SSH链接工具 Mobax 10 (命令行和文件图形化都有,相对比较方便):
https://mobaxterm.mobatek.net/download.html

4.[CentOS7环境搭建](四)安装Tomcat 9:
https://blog.csdn.net/why15732625998/article/details/78849317

5.Linux下Tomcat配置为系统服务,并开机自启动:
https://blog.csdn.net/u012383839/article/details/53024987

6.centos出现“FirewallD is not running”怎么办:
https://www.cnblogs.com/kccdzz/p/8110143.html

[root@whs bin]# ./shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat/apache-tomcat-8.5.31
Using CATALINA_HOME: /usr/local/tomcat/apache-tomcat-8.5.31
Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-8.5.31/temp
Using JRE_HOME: /usr/java/jdk1.8.0_171-amd64/jre
Using CLASSPATH: /usr/local/tomcat/apache-tomcat-8.5.31/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-8.5.31/bin/tomcat-juli.jar
May 13, 2018 5:51:46 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact [localhost:[8005]]. Tomcat may not be running.
May 13, 2018 5:51:46 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:497)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:406)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

7.Tomcat启动时卡在“INFO: Deploying web application directory ……”的解决方法:
https://blog.csdn.net/njchenyi/article/details/46641141

8.Tomcat8.5 不能进入Manager App:
https://blog.csdn.net/wangfei0904306/article/details/58586606

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×