centos set java_home

set java_home

vim /etc/profile

JAVA_HOME=/usr/local/java/jdk-13.0.2
JRE_HOME=/usr/local/java/jdk-13.0.2
CLASSPATH=.: J A V A H O M E / l i b : JAVA_HOME/lib: JAVAHOME/lib:JRE_HOME/lib
PATH= P A T H : PATH: PATH:JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASSPATH PATH

[root@localhost jdk-13.0.2]# java -version
bash: java: command not found…
Failed to search for file: cannot update repo ‘nux-dextop’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 400 for http://li.nux.ro/download/nux/dextop/el7/x86_64/ http://mirror.li.nux.ro/li.nux.ro/nux/dextop/el7/x86_64/repodata/repomd.xml

solution:

  1. check nux-dextop,
    cd /etc/yum.repos.d

[nux-dextop]
name=Nux.Ro RPMs for general desktop use
baseurl=http://li.nux.ro/download/nux/dextop/el7/ b a s e a r c h / h t t p : / / m i r r o r . l i . n u x . r o / l i . n u x . r o / n u x / d e x t o p / e l 7 / basearch/ http://mirror.li.nux.ro/li.nux.ro/nux/dextop/el7/ basearch/http://mirror.li.nux.ro/li.nux.ro/nux/dextop/el7/basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nux.ro
protect=0

[nux-dextop-testing]
name=Nux.Ro RPMs for general desktop use - testing
baseurl=http://li.nux.ro/download/nux/dextop-testing/el7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nux.ro
protect=0

  1. repodata/repomd.xml

https://blog.csdn.net/huige6941/article/details/102008423?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

centos7 yum update更新出错 yum源出错 repodata/repomd.xml 404error

将 baseurl 中的$basearch 改为 x86_64即可

  1. nux-dextop not related with java_home

  2. https://www.cnblogs.com/oberon-zjt0806/p/11663731.html
    [root@localhost /usr/lib/jvm/jdk-13]$ vim /etc/profile
    在这个文件开头加入如下内容:

export JAVA_HOME=/usr/lib/jvm/jdk-13
export JRE_HOME=/ J A V A H O M E e x p o r t C L A S S P A T H = . : {JAVA_HOME} export CLASSPATH=.: JAVAHOMEexportCLASSPATH=.:{JAVA_HOME}/libss: J R E H O M E / l i b e x p o r t P A T H = {JRE_HOME}/lib export PATH= JREHOME/libexportPATH={JAVA_HOME}/bin:$PATH

not sure about libss,

solution:
.exe file, --> windows jdk
download linux jdk
export JAVA_HOME,
export PATH

install tomcat:
lacking some jar files in source package.
solution:
download the binary version and install.
set JAVA_HOME at /ect/profile

7

centos login error:
stay at the login page after entering the password

solution:
export path, login by command line
F9, advantage setup, UEFI, centos

error occurred when adding tomcat server

version error:
change version No.?
solution: restart the computer

Could not load the Tomcat server configuration at /home/shuning/apache-tomcat-9.0.33/conf.

[shuning@localhost conf]$ lsattr
lsattr: Permission denied While reading flags on ./catalina.policy
lsattr: Permission denied While reading flags on ./catalina.properties

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值