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:
- 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
-
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即可
-
nux-dextop not related with java_home
-
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