当前位置:网站首页>Rhel7 - process management
Rhel7 - process management
2022-04-22 08:46:00 【Firefly ignition】
One . Set up root User's planned tasks
-
Every day in the morning 7:50 Auto on sshd service ,22 spot 50 Turn off

-
every other 5 Once a day FTP Server public directory /var/ftp/pub

-
Every Saturday 7:30 when , Restart httpd service

-
Every Monday 、 3、 ... and 、 Five 17:30 when , Pack and go backup /etc/httpd Catalog

-
Every night 9:30 restart linux System , And delete /var/www/user1 All files under

-
Automatic shutdown at 5:30 p.m. from Monday to Friday .

Two . Set up natasha User's planned tasks :
- Every Sunday night 23:55 When will “/etc/passwd” Copy the contents of the file to the user's home directory , Save as pwd.txt file

3、 ... and . Separate use ps,kill and top command , Realize its operation :
-
Identify the processes that use the most memory , Put it nice The priority is adjusted to 15

-
determine cpu Most used processes , Terminate the process

Four . Suspend and resume process
-
Press Ctrl+z key , Suspend process cat

-
Input jobs command , View operation

-
Input bg, hold cat Switch to background execution

-
Input fg, hold cat Switch to the foreground to execute

-
Press Ctrl+c key , The end of the process cat

5、 ... and . Use at command
-
Register a one-time run command ps –aux The homework , Make it 3:00am perform .

-
Register a planned task and broadcast it at 9:00 on March 8th women's day to congratulate everyone on a happy holiday .

-
Register a scheduled task 6 Find... In hours /root All extensions in the directory are .txt The file of .
prohibit harry Users perform scheduled tasks , Other users are not restricted .

版权声明
本文为[Firefly ignition]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220747539142.html
边栏推荐
猜你喜欢

Fabric测试示例,遇到orderer Exited(x) x seconds

Construction of sentinel service monitoring system

Level 1: node monitoring mechanism

tar 源码包管理-源码包安装方法

idea中@Data注解,get/set方法不起作用

Disk management - raid creation

Mapbox sets the official map language to Chinese

Scanf / sprintf, fscanf / fprintf, sscanf / sprintf, snprintf of C language

Hyperledger Fabric1.4环境搭建及示例测试

工业缺陷检测项目实战(四)——基于HRNet的陶瓷缺陷检测
随机推荐
PCIe learning - how to make PCIe bus compatible with PCI bus in software (7)
Single page application(单页面应用)
require-dev.mikey179/vfsStream is invalid, it should not contain uppercase characters. Please use m
Function pointers and pointer functions
winkawaks1. 45 how do I go online? winkawaks1. 45 how to play online (similar to other versions)
相对路径和绝对路径区别(面试常问)
win10安装Mongo出错Service ‘MongoDB Server’ failed to start
String replacement related topics (merging arrays)
Use of stream
Establishment of golang environment
服务器设置自动开机及定时开机
Reorganize notes: [Ultimate method] create user-defined code templates in vscade
14个py小游戏 源代码分享
一棵开始成长的树
Construction of sentinel service monitoring system
100. Same tree (easy)
235. Nearest common ancestor of binary search tree (easy)
winkawaks1.45如何联机?winkawaks1.45怎样联机对战(其他版本类似)
Cesium realizes the monomer of buildings (divided into buildings and layers)
Abbreviation for greater than / less than / equal to (abbreviation of SQL database includes mangodb)