摘要: 1.安装php yum install "*php*" -y 2.编辑httpd.conf配置文件 找到LoadModule foo_module modules/mod_foo.so 在下面添加 LoadModule php5_module modules/libphp5.so 找到AddType 阅读全文
posted @ 2019-11-17 09:52 莫名924 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1.查看iptables默认表(filter) iptables -L -n 2.iptables 默认内链(filter)表三种: INPUT:处理进入防火墙的数据包 FORWARD:源自其他计算机,不接受到防火墙,而是转发(路由) OUTPUT:处理防火墙发出的数据包 3.添加规则,拒绝icmp 阅读全文
posted @ 2019-11-04 13:57 莫名924 阅读(3554) 评论(0) 推荐(0) 编辑
摘要: 1.解压nethogs tar -zxvpf nethogs_0.8.5.orig.tar.gz 2.直接make,这里报错,提示pcap.h,安装libpcap就可以了 3.如果已经安装,还是报错,需要找到libpcap/include目录下面的所有文件,cp到/usr/include/ 另外li 阅读全文
posted @ 2019-10-31 19:11 莫名924 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1.安装iftop,先要安装flex、bison、libpcap编译安装 解压红箭头的两个文件 tar -zxvpf iftop-0.16.tar.gz tar -zxvpf libpcap-1.4.0.tar.gz libpcap编译安装到指定目录 ./configure --prefix=/us 阅读全文
posted @ 2019-10-30 13:41 莫名924 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 1. 查看1个月内流量,只保留一个月的流量 命令: sar -n DEV -f /var/log/sa/sa26 RX代表进来的流量,TX代表出去的流量 2.安装查看实时流量软件ethstatus 解压安装包 tar -zxvf ethstatus_0.4.2.orig.tar.gz make直接编 阅读全文
posted @ 2019-10-30 13:14 莫名924 阅读(865) 评论(0) 推荐(0) 编辑
摘要: 1.下载git包 下载网址:https://mirrors.edge.kernel.org/pub/software/scm/git/ //自己下载想要的版本 或者直接在Linux 直接使用wget下载 wget https://mirrors.edge.kernel.org/pub/softwar 阅读全文
posted @ 2019-10-29 22:42 莫名924 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1. 命令 查看CPU负载 命令1:uptime 命令2:cat /proc/loadavg 查看CPU信息:cat /proc/cpuinfo load average:表示平均1分钟内运行的进程,表示平均5分钟内运行的进程,表示平均15分钟内运行的进程 2. 查看内存 命令1:free -m 命 阅读全文
posted @ 2019-10-28 21:43 莫名924 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 1.按名字查找 find ./ -name filename //精确查找 ,./ 代表当前目录 -name 查询名称 filename具体文件名称 find ./ -name "*file*" //模糊查找 2.按时间查找 find ./ -mtime -2 //数字单位为天数,2天之内.+2 2 阅读全文
posted @ 2019-10-28 19:58 莫名924 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 1.查看rsync,并安装 yum install rsync -y 2.配置/etc/rsyncd.conf文件 建议cp一份作为备份,清空内容复制以下配置 [服务端配置]log file = /var/log/rsyncd.log //日志文件,默认没有设置pid file = /var/log 阅读全文
posted @ 2019-10-26 22:51 莫名924 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: rpm -qa | grep httpd //该命令查看apache是否安装,下面图片是已安装,未安装不会显示任何内容 yum install httpd -y //如果未安装使用命令安装 service httpd status/stop/restart/start //查看apache服务 状态 阅读全文
posted @ 2019-10-15 20:03 莫名924 阅读(547) 评论(0) 推荐(0) 编辑