当前位置:网站首页>RHEL7——进程管理
RHEL7——进程管理
2022-04-22 07:48:00 【流萤点火】
一.设置root用户的计划任务
-
每天早上7:50自动开启sshd服务,22点50时关闭

-
每隔5天清空一次FTP服务器公共目录/var/ftp/pub

-
每周六的7:30时,重新启动httpd服务

-
每周一、三、五的17:30时,打包备份/etc/httpd目录

-
每天晚上9:30重启linux系统,并删除/var/www/user1下的所有文件

-
周一到周五下午五点半自动关机。

二.设置natasha用户的计划任务:
- 每周日晚上23:55时将“/etc/passwd”文件的内容复制到用户主目录中,保存为pwd.txt文件

三.分别使用ps,kill和top命令,实现其操作:
-
确定内存使用最多的进程,将其nice优先级调整为15

-
确定cpu使用最多的进程,终止该进程

四.挂起和恢复进程
-
按Ctrl+z键,挂起进程cat

-
输入jobs命令,查看作业

-
输入bg,把cat切换到后台执行

-
输入fg,把cat切换到前台执行

-
按Ctrl+c键,结束进程cat

五. 使用at命令
-
登记一个一次性运行命令 ps –aux 的作业,使其在3:00am执行。

-
登记一条计划任务在三八妇女节当天九点广播祝贺所有人节日快乐。

-
登记一条计划任务6小时后查找/root目录下所有扩展名为.txt的文件。
禁止harry用户执行计划任务,其他用户不受限制。

版权声明
本文为[流萤点火]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44732379/article/details/109551292
边栏推荐
猜你喜欢

236. The nearest common ancestor of a binary tree (medium)
![[paper reading] [3D object detection] voxel set transformer: a set to set approach to 3D object detection from point clouds](/img/49/255f46e44039500acf1c4a641f5c91.png)
[paper reading] [3D object detection] voxel set transformer: a set to set approach to 3D object detection from point clouds

Linux(CentOS)下安装 PostgreSQL

C语言之scanf/sprintf、fscanf/fprintf、sscanf/sprintf、snprintf

Cesium realizes the monomer of buildings (divided into buildings and layers)

redis 简单使用

129. Find the sum of numbers from root node to leaf node (medium)

Pointer and string

mysql导出表的具体字段信息(Navicat客户端详细操作)

重整笔记记录:【终极方法】在Vscode中用户创建自定义代码模板
随机推荐
[youqilin] version 22.04 lts will be released soon. The final notice is coming. Are you ready?
Cesium mouse picks up the feature and determines the feature category
100. Same tree (easy)
PCIe学习-PCIe总线体系结构入门:事务层-数据链路层-物理层(八)
Client server communication project 4
社会工程学之黑客七宗罪——贪婪(死亡之PING)
SQL query removes empty data and null fields
Elastic job installation deployment access
How to decrypt the mobile phone number of wechat applet
聚看点 (详细版) 吃低保 每天几毛 青龙
ROM、RAM、SRAM、DRAM、Flash、SDRAM区别
"Unexpected" operation in SQL statement
HyperLedger Explorer 0.3.9环境搭建
OLED display driver
oracle 数据库常识以及使用
Another upper triangle number triangle
The pit encountered in the compilation and installation of pinpoint of win system will be shared with you
WeChat official account - webpage authorization
617. Merge binary tree (easy)
Spark SQL gets the element at an index of the array