diff --git "a/05\346\237\257\346\230\200\345\220\253/2024-06.19-linux\350\277\233\347\250\213.md" "b/05\346\237\257\346\230\200\345\220\253/2024-06.19-linux\350\277\233\347\250\213.md" new file mode 100644 index 0000000000000000000000000000000000000000..a49a8a137a67373a9bf4a88540c35600864b0c68 --- /dev/null +++ "b/05\346\237\257\346\230\200\345\220\253/2024-06.19-linux\350\277\233\347\250\213.md" @@ -0,0 +1,15 @@ +# 进程 + +显示所有进程:ps -aux + +实时查看状态信息:top + +查看进程号:pidof 查看的服务名称 + +杀死进程:kill 进程号 + +杀死所有进程:killall 服务名称 + +将进程放入后台:bg + +将进程放入前台:fg \ No newline at end of file diff --git "a/05\346\237\257\346\230\200\345\220\253/2024-06.22\346\234\215\345\212\241\347\256\241\347\220\206.md" "b/05\346\237\257\346\230\200\345\220\253/2024-06.22\346\234\215\345\212\241\347\256\241\347\220\206.md" new file mode 100644 index 0000000000000000000000000000000000000000..3031c0f6d87320480a5737641a9f19cef4cee0e7 --- /dev/null +++ "b/05\346\237\257\346\230\200\345\220\253/2024-06.22\346\234\215\345\212\241\347\256\241\347\220\206.md" @@ -0,0 +1,13 @@ +# 服务管理 + +什么是服务:服务是程序,是后台运行的,响应用户或其他程序的请求 + +管理服务: + +``` +systemctl start 服务名 #开启某服务名称 +systemctl stop 服务名 #关闭某服务名称 +systemctl restar 服务名 #重启某服务名称 +systemctl status 服务名 #查看服务状态 +systemctl enalbe 服务名 #开机自启动服务 +``` \ No newline at end of file