jdk配置
export JAVA_HOME=/usr/local/java/jdk1.8.0_181 这里的目录要换成你解压的JDK 目录
export CLASSPATH=.:{JRE_HOME}/lib
export JRE_HOME=${JAVA_HOME}/jre
export PATH=PATH
mysql安装
sudo apt install mysql-server
sudo apt install mysql-client
sudo apt install libmysqlclient-dev
GRANT ALL PRIVILEGES ON . TO 'admin'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
FLUSH PRIVILEGES;
delete from user where user='test' and Host='localhost';
tomcat配置远程访问
配置文件位置/webapps/manager/META-INF/context.xml
<Context antiResourceLocking="false" privileged="true" >
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>
改为
<Context antiResourceLocking="false" privileged="true" >
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
</Context>