美文网首页
linux配置java环境

linux配置java环境

作者: 初学者c | 来源:发表于2018-08-14 15:31 被阅读0次

    jdk配置

    • export JAVA_HOME=/usr/local/java/jdk1.8.0_181 这里的目录要换成你解压的JDK 目录

    • export CLASSPATH=.:{JAVA_HOME}/lib:{JRE_HOME}/lib

    • export JRE_HOME=${JAVA_HOME}/jre

    • export PATH={JAVA_HOME}/bin: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>
    

    相关文章

      网友评论

          本文标题:linux配置java环境

          本文链接:https://www.haomeiwen.com/subject/aprvbftx.html