日记 进程 ip /端口

查看日记:

tail -f  log.txt       循环查看

cat  info         查看文件

less info           查看文件 

head -n 10 /vv/v  查看/vv/v前十行内容

tail -n 50/vv/v       查看/vv/v最后50行内容

查看tomcat进程:

ps -ef | grep tomcat

ps -aux | grep tomcat

查看正在执行的进程的命令 :

ps -ef

杀死进程:

kill  -9 进程id

ps -ef | grep tomcat        :查看进程是否已关闭

查看当前机器listen的所有端口:

netstat -tlnp

查看端口号的命令  :

netstat -antpl

查看ip地址:

ifcomfig

猜你喜欢

转载自www.cnblogs.com/qiya/p/11655748.html