摘要: hosts: ["192.168.127.00:9200"] index: "tomcat-access-%{+yyyy.MM.dd}" #indices:# - index: "tomcat-access-%{[agent.version]}-%{+yyyy.MM.dd}"# when.conta 阅读全文
posted @ 2022-04-02 15:46 DevonL 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一、 上传Nginx安装文件和GeoIP数据库文件 [root@devonl ~]# cd /usr/local/src/ [root@devonl src]# ls libmaxminddb-1.6.0.tar.gz nginx-1.6.0.tar.gz ngx_http_geoip2_modul 阅读全文
posted @ 2022-03-31 14:52 DevonL 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 一、压缩打包 1.使用脚本进行压缩打包 [root@localhost ~]# cat DataBack.sh #!/bin/bash DATE=`(date +"%Y-%m-%d")` tar -cPvzf /directory/backup/backup$DATE.tar.gz /directo 阅读全文
posted @ 2022-03-31 14:33 DevonL 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 一、配置一个定时发的内容目录 mkdir /love 二、创建需要定时发的内容的文件 [root@localhost ~]# touch /love/{1..100}.txt 三、填写一个需要发送的文本以换行符为单位,如我所示为1-100 [root@localhost ~]# for i in { 阅读全文
posted @ 2020-10-26 16:10 DevonL 阅读(322) 评论(0) 推荐(0) 编辑
摘要: [root@localhost ~]# vim user.sh 1 #!/bin/bash 2 for i in `cut -d ":" -f1 /etc/passwd`; 3 do 4 echo -e "Hello User:" "\033[31m$i\033[0m" "shell is" "\0 阅读全文
posted @ 2020-02-18 13:15 DevonL 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 一、首先安装GNOME桌面 yum groupinstall -y "GNOME Desktop"# 安装完成后,修改默认启动方式为图形化界面systemctl set-default graphical.target //设置成图形模式 # 如果要换回来systemctl set-default 阅读全文
posted @ 2020-01-04 10:17 DevonL 阅读(749) 评论(0) 推荐(0) 编辑
摘要: * * * * * (下面的字体对应) 分 时 日 月 周 星号(*):代表所有可能的值,例如month字段如果是星号,则表示在满足其它字段的制约条件后每月都执行该命令操作。 逗号(,):可以用逗号隔开的值指定一个列表范围,例如,“1,2,5,7,8,9” 中杠(-):可以用整数之间的中杠表示一个整 阅读全文
posted @ 2019-12-09 18:22 DevonL 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 一、在docker中下载nginx镜像 docker pull nginx 二、在宿主机中创建挂在目录 mkdir -p /data/nginx/{conf,conf.d,html,log} 三、在挂在目录下新建配置文件 vim /data/nginx/conf/nginx.conf user ww 阅读全文
posted @ 2019-12-06 17:15 DevonL 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 一、更改时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 二、Crontab时间同步 crontab -e #crontab编辑 */5 * * * * /usr/local/bin/ntpdate time1.aliyun.com #每五 阅读全文
posted @ 2019-12-06 15:14 DevonL 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 一、更新yum源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo 二、安装sl命令 yum install -y sl 阅读全文
posted @ 2019-12-06 11:54 DevonL 阅读(1205) 评论(0) 推荐(0) 编辑