随笔分类 -  Linux

摘要:向各位求教:一个阿里的 ecs服务器,放网站的。估计被挂马了,其中网站下的一个文件index.html,被篡改,想删除,但是删除不了。ls -l 结果:-r--r--r-- 1 www www 25008 Nov 21 20:32 index.html执行命令:lsattr index.php 结果 阅读全文
posted @ 2019-02-22 17:16 龙卷风之殇 阅读(518) 评论(0) 推荐(0)
摘要:参考文件: https://www.zyku.net/centos/1713.html 检查错误命令: lsyncd -pidfile /tmp/lsyncd.pid /etc/lsyncd.conf 注意事项,配置不支持#注释,配置不支持#注释,配置不支持#注释 重要的事情说三遍浪费我半天时间 使 阅读全文
posted @ 2018-12-24 18:20 龙卷风之殇 阅读(1215) 评论(0) 推荐(0)
摘要:一、iftop是什么? iftop是类似于top的实时流量监控工具。 官方网站:http://www.ex-parrot.com/~pdw/iftop/ 二、iftop有什么用? iftop可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等,详细的将会在后面的使用参数中说明。 阅读全文
posted @ 2018-12-20 14:22 龙卷风之殇 阅读(580) 评论(0) 推荐(0)
摘要:59 23 * * * if [ `date +%d -d tomorrow` = 01 ]; then; command(/usr/bin/curl -s -o temp.txt http://o2o.szmall.com/api/Sys/imoprt_money.html) (解释:就是相当于如 阅读全文
posted @ 2018-12-11 10:08 龙卷风之殇 阅读(8152) 评论(0) 推荐(0)
摘要:eoiioe eoiioe eoiioe linux下解压命令大全 .tar 解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)———————————————.gz解压1:gunzip FileName.gz解 阅读全文
posted @ 2018-11-30 10:51 龙卷风之殇 阅读(14743) 评论(0) 推荐(0)
摘要:Loaded plugins: fastestmirror, langpacksOne of the configured repositories failed (Unknown),and yum doesn't have enough cached data to continue. At th 阅读全文
posted @ 2018-11-06 15:46 龙卷风之殇 阅读(1610) 评论(0) 推荐(0)
摘要:echo `date +%F` 打印当前日期 用于写备份脚本按照名字命名 阅读全文
posted @ 2018-09-25 18:10 龙卷风之殇 阅读(175) 评论(0) 推荐(0)
摘要:LINUX成长日记 1.本人工作实例:(将一台服务器的数据库复制到另外一台服务器上) scp -r -P 8351 /bak_mysql/sz_b2b2c201705180200.sql root@192.168.72.19:/ (8351端口 192.168.72.19:/表示这台服务器的根目录 阅读全文
posted @ 2018-09-25 15:53 龙卷风之殇 阅读(573) 评论(0) 推荐(0)
摘要:在解决问题之前,我们首先来了解下面几个知识点: 1. date命令: #date 显示系统时间 2.hwclock命令 (即hardwareclock系统硬件时间) #hwclock 显示硬件时间 #hwclock -w 将系统时间写入到系统硬件当中 3.ntpdate ntpdate 是一个lin 阅读全文
posted @ 2018-09-11 14:22 龙卷风之殇 阅读(6038) 评论(3) 推荐(1)
摘要:设置分区开机自动挂载 要在/etc/fstab里设置一行 把上面空格去掉就行了 阅读全文
posted @ 2018-09-01 17:01 龙卷风之殇 阅读(273) 评论(0) 推荐(0)
摘要:$ : > filename $ > filename $ echo "" > filename $ echo > filename $ cat /dev/null > filename 阅读全文
posted @ 2018-09-01 16:55 龙卷风之殇 阅读(195) 评论(0) 推荐(0)
摘要:测试环境 测试域名 :www.threegroup.space A服务器IP :123.56.255.173 (主) B服务器IP :101.200.159.138 C服务器IP :123.56.255.53 部署思路A服务器做为主服务器,域名直接解析到A服务器(123.56.255.173)上,由 阅读全文
posted @ 2018-08-30 09:10 龙卷风之殇 阅读(211) 评论(0) 推荐(0)