前言:程序是保存在外部存储介质(如硬盘)中的可执行机器代码和数据的静态集合,而进程是在CPU及内存中处于动态执行状态的计算机程序。在Linux系统中,每个程序启动后可以创建一个或多个进程。例如,提供Web服务的httpd程序,当有大量用户同时访问Web页面时,httpd程序可能会创建多个进程来提供服务。查看进程1、PS命令—查看静态的进程统计信息ps命令是Linux系统中最为常用的进程查看工具,主
分类:
系统相关 时间:
2020-07-02 00:12:25
阅读次数:
72
#!/bin/bashsrc=/test/dest=testrsync_secret_file=/etc/rsync_pwdfiledest_ip=192.168.37.133user=test/usr/local/bin/inotifywait -mrq --format '%Xe %w %f' ...
分类:
其他好文 时间:
2020-06-30 18:56:32
阅读次数:
44
1.定义bash环境的用户配置文件是(2分) D - A. bash & .bashrc - B. bashrc & .bash_conf - C. bashrc & bash_profile - D. .bashrc & .bash_profile 2.使用下面的哪条命令可以为文件建立一个软连接( ...
分类:
系统相关 时间:
2020-06-30 12:38:04
阅读次数:
183
转:https://www.echoxu.cn/logrotate/#logrotate%E4%BB%8B%E7%BB%8D 说起日志切割,很多人会选择用crontab脚本定时执行已编写好的日志分割脚本,殊不知在linux上内置了日志分割工具,它就是logrotate且其在centos7上默认安装了 ...
分类:
其他好文 时间:
2020-06-29 11:37:31
阅读次数:
181
crontab在/var/log/目录下没有cron.log文件 修改rsyslog文件: /etc/rsyslog.d/50-default.conf 将 rsyslog 文件中的 #cron.* 前的 # 删掉; 重启rsyslog服务: service rsyslog restart 重启cr ...
分类:
系统相关 时间:
2020-06-26 20:11:56
阅读次数:
59
aviary.sh 是一个基于bash的分布式配置管理工具,可以用来奇幻chef,puppet,ansible aviary.sh 利用了git 以及linux 的crontab,以前有介绍过类似的工具bashible 参考图 说明 aviary.sh 的好多特性类似ansible,同时集成了git ...
分类:
其他好文 时间:
2020-06-26 14:39:26
阅读次数:
85
参考网址 :http://blog.csdn.net/renfufei/article/details/23701765 http://blog.csdn.net/ethanzhao/article/details/4406017 http://tool.lu/crontab crontab任务表达 ...
分类:
数据库 时间:
2020-06-24 19:23:28
阅读次数:
68
基于游戏自动化,本文针对liunx系统下定时执行脚本的任务,涉及adb以及自动以模块的调用 if get_system() == 'Windows': INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django. ...
分类:
其他好文 时间:
2020-06-24 15:43:00
阅读次数:
38
1.在application目录下创建crontab模块(统一存放定时任务) 2.在command目录下创建Task.php 代码如下: <?php namespace app\crontab\command; use think\console\Command; use think\console ...
分类:
Web程序 时间:
2020-06-24 00:26:08
阅读次数:
315
rsync -rvl user@host:dir/file user@host:dir/file ...
分类:
其他好文 时间:
2020-06-23 21:43:58
阅读次数:
67