![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
馒头5188
有问题,邮箱mantou5188@gmail.com
展开
-
zabbix自定义脚本监测
监控ftp连接数示例 1. 在agent 创建脚本 创建文件: /etc/zabbix/scripts/ftp_count.sh #!/bin/bash netstat -a | grep ':ftp' |grep -c -v LISTEN 加权限 chmod 755 /etc/zabbix/scripts/ftp_count.sh 2. 在agent 写入配置文件 编辑agent配置文...原创 2020-03-06 14:15:27 · 276 阅读 · 0 评论 -
CentOS7网络配置
1.查看网络接口:shell-> nmcli dev status查看ip:shell-> ip add2.打开网络配置目录:shell-> cd /etc/sysconfig/network-scripts修改对应eno2文件BOOTPROTO="static" #static静态 dhcp动态, none IPADDR="Ip地址" NETMASK=" 255.255.255.0原创 2017-05-10 11:21:32 · 179 阅读 · 0 评论 -
搭建yum源
搭建yum源 实现目标 操作系统:CentOS 7 准备两台机器server 和 agent, 在server上搭建yum源 ,agent指向server yum源,实现包安装 在Server搭建yum仓库 createrepo:用于创建yum源 yum-plugin-priorities:用于设置yum源的优先级 nginx yum install -y createrepo yum ins...原创 2019-05-24 10:23:00 · 185 阅读 · 0 评论 -
Yum源使用
Yum源使用 前言: 上接文章: 搭建yum源 准备两台机器: server(yum仓库) agent(指向yum仓库) Server rpm包获取地址法: https://centos.pkgs.org/ https://rpmfind.net/ 使用yum下载包 yum install --downloadonly --downloaddir=/home/repo perl...原创 2019-05-24 10:41:11 · 151 阅读 · 0 评论 -
配置smb映射Linux文件
配置CentOS7 映射文件到本地windows 新建 $ yum -y install samba 添加系统用户 $ useradd username 配置smb $ vim /etc/samba/smb.conf 添加一下内容 [username] comment = username path = /data/wwwroot writab...原创 2019-09-12 15:27:10 · 239 阅读 · 0 评论