当前位置:网站首页>RHCSA 04 - 进程管理
RHCSA 04 - 进程管理
2022-07-04 03:52:00 【王万林 Ben】
运行进程
后台运行进程
[[email protected] ~]# dd if=/dev/zero of=/dev/null & #将进程运行在后台
[1] 10125
[[email protected] ~]# jobs #查看后台进程
[1]+ Running dd if=/dev/zero of=/dev/null &
[[email protected] ~]# fg 1 #将指定后台进程放到前台
dd if=/dev/zero of=/dev/null
恢复stop的进程
[[email protected] ~]# dd if=/dev/zero of=/dev/null
^Z
[1]+ Stopped dd if=/dev/zero of=/dev/null
[[email protected] ~]# bg
[1]+ dd if=/dev/zero of=/dev/null &
监控进程
top命令
ps命令
更改进程优先级
默认情况下,所有进程都有相同的优先级。优先级的值从-19(最高优先级)到20(最低优先级)。
[[email protected] ~]# nice -n -10 dd if=/dev/zero of=/dev/null &
[1] 10270
在top显示页面,按r,然后输入10270,然后输入nice值-15,可以将优先级值修改为-15,
杀掉进程
killall dd杀掉全部dd进程
也可以使用kill <PID>单独kill某个进程。
边栏推荐
- Reduce function under functools
- (指针)自己写一个比较字符串大小的函数,功能与strcmp类似。
- 透过JVM-SANDBOX源码,了解字节码增强技术原理
- CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构
- Global exposure and roller shutter exposure of industrial cameras
- 如何远程办公更有效率 | 社区征文
- The new data center helps speed up the construction of a digital economy with data as a key element
- How to telecommute more efficiently | community essay solicitation
- Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
- *. No main manifest attribute in jar
猜你喜欢
Flink learning 8: data consistency
laravel admin里百度编辑器自定义路径和文件名
'2'&gt;' 10'==true? How does JS perform implicit type conversion?
ctf-pikachu-CSRF
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
User defined path and file name of Baidu editor in laravel admin
Reduce function under functools
Katalon中控件的参数化
【罗技】m720
Pytest multi process / multi thread execution test case
随机推荐
Getting started with the go language is simple: go implements the Caesar password
Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)
Confession code collection, who says program apes don't understand romance
idea修改主体颜色
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
网络 - VXLAN
量子力学习题
JDBC 进阶
vim正确加区间注释
三年进账35.31亿,这个江西老表要IPO了
User defined path and file name of Baidu editor in laravel admin
STM32外接DHT11显示温湿度
leetcode刷题:二叉树06(对称二叉树)
毕业总结
leetcode刷题:二叉树04(二叉树的层序遍历)
pytest多进程/多线程执行测试用例
Illustrated network: what is the hot backup router protocol HSRP?
Small record of thinking
Reduce function under functools
I Build a simple microservice project