stopped進(jìn)程查看
ps -e j | grep T
mysql服務(wù)啟動(dòng)
service mysqld status
下載文件
wget -c 下載地址
配置阿里云鏡像地址
https://yq.aliyun.com/articles/704987
安裝redis5.x
https://blog.csdn.net/qq_22067469/article/details/83817825
安裝mysql8.x
https://blog.csdn.net/danykk/article/details/80137223
卸載mysql
yum remove mysql-community-server
rpm -qa |grep mysql
yum remove ..
查看服務(wù)
netstat -nlpt
解壓
tar -zxvf ..
查看rpm安裝
rpm -qa|grep -i mysql
查看tomcat日志
cd usr/local/tomcat5/logs
tail -f catalina.out
tail -300f xxx.log | grep "userId"
賦予執(zhí)行權(quán)限
chmod 755
創(chuàng)建文件
touch [文件名]
查看端口
ps -aux | grep tomcat
關(guān)閉端口號(hào)
iptables -A OUTPUT -ptcp --dport 端口號(hào)-j DROP
打開端口號(hào)
iptables -A INPUT -ptcp --dport 端口號(hào)-j ACCEPT
保存設(shè)置
service iptables save
查看某端口占用的線程的pid
netstat -nlp |grep :9181
后臺(tái)運(yùn)行jar
nohup java -jar [jar包地址] > [日志地址] >&1 &
防火墻
1.查看已開放的端口(默認(rèn)不開放任何端口)
firewall-cmd --list-ports
2.開啟80端口
firewall-cmd --zone=public(作用域) --add-port=80/tcp(端口和訪問類型) --permanent(永久生效)
3.重啟防火墻
firewall-cmd --reload
4.停止防火墻
systemctl stop firewalld.service
5.禁止防火墻開機(jī)啟動(dòng)
systemctl disable firewalld.service
6.刪除
firewall-cmd --zone=public --remove-port=80/tcp --permanent