美文网首页
linux常用命令

linux常用命令

作者: de_self | 来源:发表于2019-04-10 16:23 被阅读0次

查看进程 ps -ef|grep 进程名
后台启动jar包 nohup java -jar &
查看启动日志 tail -fn 50 nohup.out 或 cat nohup.out
ctrl+c是结束命令,也可退出日志查看
df -h 查看资源使用情况
cat /etc/redhat-release查看centos的版本
ifconfig -a查看ip地址,mac地址等
tomcat启动命令 bin/startup.bat
nigix启动命令nigix文件夹下: ./sbin/nginx -c ./conf/nginx.conf
停止命令:杀进程
新建文件夹:mkdir xxxx
复制文件: scp -r root@192.168.120.204:/opt/soft/mongodb /opt/soft/
查看内存占用率: free -h
查看cpu:top
查看存储:df -h
查看未挂载的盘符: fdisk -l
修改文件:sudo mv xxx xxx

相关文章

网友评论

      本文标题:linux常用命令

      本文链接:https://www.haomeiwen.com/subject/qmwxqqtx.html