首页 > 代码库 > linux系统管理常用命令(不定时更新)
linux系统管理常用命令(不定时更新)
1、关闭apache
版本一 /etc/init.d/httpd stop
版本二 /etc/init.d/apache2 stop
2、查看端口80
netstat -anp |gep 80
参数说明:
-p process
-a all
-n 以数字显示地址和端口(否则忽略虚拟机动态ip,127.0.0.1会以localhost显示)
3、进程相关ps
使用权限:所有使用者
使用方式:ps [options] [--help]
说明:显示瞬间行程 (process) 的动态
参数:ps的参数非常多, 在此仅列出几个常用的参数并大略介绍含义
-A 列出所有的进程
-w 显示加宽可以显示较多的资讯
-au 显示较详细的资讯
-aux 显示所有包含其他使用者的行程
添加 |grep xx 过滤用户
杀死进程:kill -s 9 xxx(pid)
linux系统管理常用命令(不定时更新)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。