1.查看内存版本
cat /etc/*release
2.防火墙问题
查看状态:systemctl status firewalld
yum install firewalld //安装firewalld 防火墙
systemctl start firewalld //开启防火墙
systemctl stop firewalld //关闭防火墙
systemctl enable firewalld //设置开机自动启动
systemctl disable firewalld.service //设置关闭开机制动启动
开启某个端口
firewall-cmd --permanent --zone=public --add-port=8080-8081/tcp //永久
查看开启的端口和服务
firewall-cmd --permanent --zone=public --list-services //服务空格隔开
firewall-cmd --permanent --zone=public --list-ports //端口空格隔开
systemctl restart firewalld.service //修改配置后需要重启服务使其生效
firewall-cmd --zone=public --query-port=8080/tcp //查看服务是否生效(例:添加的端口为8080)
3.Linux配置JDK与Tomcat
export JAVA_HOME=/usr/local/src/jdk1.8.0_171
export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin
CATALINA_BASE=/usr/local/src/tomcat8
PATH=$PATH:$CATALINA_BASE/bin
export CATALINA_BASE PATH
source /etc/profile source /etc/profile