linux 常用命令行(持续更新)
linux 常用命令行(持续更新)
1、使用pid查询端口号
sudo netstat -antup|grep PID号
2、查询端口号所有情况
sudo netstat -antup
3、启动、重启、关闭tomcat服务器,若没有权限则加sudo
service tomcat6 start
service tomcat6 restart
service tomcat6 stop
4.查看防火墙情况
chkconfig --list |grep -i iptables
5.修改系统时间(遇到场景:在使用网易云信IM时,需要将系统时间作为参数进行传递,系统时间与真实时间相差十分钟致使网易云信服务器校验时判定为CurTime is expired,该操作无效)
date -s 17:06:50