%confdir%mp.txtren%confdir%\%confname%%confname%.bakren%confdir%mp.txt%confname%REM判断操作系统为64位还是32位if/i%ostype%==x86(  gotoWIN32-IMDN开发者社群-imdn.cn"> %confdir%mp.txtren%confdir%\%confname%%confname%.bakren%confdir%mp.txt%confname%REM判断操作系统为64位还是32位if/i%ostype%==x86(  gotoWIN32 - IMDN开发者社群-imdn.cn">
登录
首页 » shell » zabbix自动安装及卸载脚本

zabbix自动安装及卸载脚本

于 2022-08-07 发布 文件大小:953.73 kB
0 117
下载积分: 2 下载次数: 1

代码说明:

@echo offREM *********************************************REM 用途:用于windows自动安装zabbix客户端REM 编制人:REM 修订人:无REM *********************************************REM 变量定义set homepath=C:zabbixset confname=zabbix_agentd.win.confset confdir=%homepath%confset win32dir=%homepath%win32set win64dir=%homepath%win64set ostype=%PROCESSOR_IDENTIFIER:~0,3%REM 获取主机名for /f "delims=" %%x in ("hostname") do set Hname=%%xREM 更新conf文件内容(for /f "delims=" %%i in (%confdir%\%confname%) do (   Set str=%%i  SetLocal EnableDelayedExpansion  Set str=!Str:tempname=%Hname%!  echo !str!  EndLocal ))>%confdir% mp.txtren %confdir%\%confname% %confname%.bakren %confdir% mp.txt %confname%REM 判断操作系统为64位还是32位if /i %ostype% == x86 (   goto WIN32

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 监控系统进程,管理系统进程,包括停,起,kill等
    监控系统进程,管理系统进程,包括停,起,kill等-process control system, management system process, including the stop, kill, etc.
    2022-05-26 04:41:03下载
    积分:1
  • Docker Install on Linux
    1.通过yum在线安装,需要用户有sudo权限 1.1、安装依赖: sudo yum remove docker                   docker-client                   docker-client-latest                   docker-common                   docker-latest                   docker-latest-logrotate                   docker-logrotate                   docker-selinux                   docker-engine-selinux                   docker-engine   yum install -y yum-utils device-mapper-persistent-data lvm2 git yum update -y nss curl libcurl   1.2、添加软件源信息 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo   1.3、更新并安装 Docker-CE #更新yum包的索引 #yum makecache fast   yum -y install docker-ce docker --version   1.4、开启Docker服务 systemctl enable docker systemctl start docker   1.5验证 docker run hello-world   2.通过 yum 离线安装 2.1.搭建本地yum源 2.1.1 基本思路: 1)      在可以连接外网的机器(未安装过docker,同时跟局域网要安装docker的机器系统版本一致)通过yum命令将rpm以及相关的依赖下载完成 2)      将下载完成的rpm包,拷贝到局域网机器上面 3)      构建本地yum源 4)      使用yum install docker-ce安装,安装完成 2.1.2 docker离线安装包的下载 说明:该步骤可忽略,目前本目录的dockerRpm就是已下载的安装包 要下载docker离线安装包,需要通过yum的离线下载命令进行,一般我们使用yum install下载安装包会进行安装,安装完成后删除下载的安装包,yum提供了一种只下载安装包,但是不进行安装的方法。 1)设置docker-ce 的yum 源 方法1:把docke-ce.repo 拷贝到/etc/yum.repos.d/目录 方法2:同1.2添加docker 的yum 源 2)下载docker-ce 依赖的安装包 yum install --downloadonly --downloaddir=/home/opt/dockerRpm docker-ce 通过这个命令,我们可以将docker相关的rpm包下载到/home/opt/dockerRpm目录 2.1.3. copy rpm包到需要安装docker的机器上面 将docker的rpm包拷贝到需要安装docker的局域网集群上面,例如:/home/yum-custom/ 2.1.4 构建本地yum源 1)      构建本地源之前,需要在本地安装createrepo,用于构建本地源,方法,同docker包下载,通过yum install –downloadonly --downloaddir=/home/opt/createRpm createrepo 下载好,copy到该机器上面,通过rpm -ivh进行安装,createrepo关联包很少,不详细描述。 2)      删除/etc/yum.repo.d目录下文件,创建新的*.repo文件,如:docker.repo,进行配置,如图:    3)      createrepo -d /home/yum-custom/设置本地源,执行成功后本地源就设置完成了 4)      输入yum repolist看是否能看到自己构建的本地源 5)      清除缓存,yum clean all 6)      创建缓存,yum makecache 7)      看本地源是否配置成功,通过yum list看是否输出了新的rpm包,如果能查询到,证明配置成功 2.2安装docker yum install docker-ce 2.3启动 docker 服务 sudo service docker start
    2021-08-10 00:31:05下载
    积分:1
  • Ikdwjadnwadjwadhaukawgdawydyawydaydawygdwgdahbhbbxnbanbxbwhyqbawdbhashdbhabsdbhbdhdwayjhdbyadjshadbhwbhaudayqywbyadabjdhabdahwjdahhdhssanbwdhwdhwdshnabdhwamdwmnsbahwdmwa
    2022-08-16 18:00:57下载
    积分:1
  • Linex Shell, relatively simple, achieving Linex disruption of some operations, t...
    Linex的Shell,比较简单,实现了Linex中断的一些操作,具体内容可参照linex内核实习的实验2-Linex Shell, relatively simple, achieving Linex disruption of some operations, the specific content of reference linex core of the experimental attachment 2
    2023-03-16 05:50:03下载
    积分:1
  • 介绍在vb6下如何利用控件技术打开标准pdf文件,可供相关开发人员参考。...
    介绍在vb6下如何利用控件技术打开标准pdf文件,可供相关开发人员参考。-introduced in VB6 how to control the use of open technology standards pdf documents for the development of relevant reference.
    2022-06-27 15:44:40下载
    积分:1
  • Cloudera manager搭建及使用(大数据集群搭建).pptx
    课程是基于企业实际生产环境,涉及到mysql的安装及卸载、cloudera manager CDH的搭建及使用、添加组件、配置、升级组件、企业中如何向已有集群横向扩展节点、根据监控指标去优化集群、集中化监控图表、使用shell编写实用工具及cloudera manager的概述。你将学到:1.Cm的搭建、配置、使用、升级及优化2.使用shell开发工具3.如何处理问题的方法4.Mysql的安装与卸载
    2020-11-29下载
    积分:1
  • cdsdsdse ewew ffgd fdgdf g
    cdsdsdse ewew ffgd fdgdf g
    2023-07-14 14:15:08下载
    积分:1
  • delphi编写的修改系统级菜单得事例程序
    delphi编写的修改系统级菜单得事例程序-delphi prepared by the modification to the system menu in the case procedures
    2023-02-17 20:50:03下载
    积分:1
  • 虚拟文件夹(Shell Namespace extension)编程的几个例子,不过程序老了点,是用VC2或VC4编译的,用到了未公开的Windows Shel...
    虚拟文件夹(Shell Namespace extension)编程的几个例子,不过程序老了点,是用VC2或VC4编译的,用到了未公开的Windows Shell函数- The hypothesized folder (Shell Namespace extension) programs several examples, but the procedure was old, was translates with VC2 or VC4, with not public Windows Shell function
    2022-03-06 12:19:31下载
    积分:1
  • arm下的linux驱动开发
    arm 下的linux驱动开发,包含链接文件和makefile文件的编写,比较实用。
    2022-07-02 23:43:39下载
    积分:1
  • 696518资源总数
  • 105661会员总数
  • 6今日下载