删除monitor配置文件

打开monitor

cd /usrl/local/smokeping/etc

ls

cp config /root/(备份文件)

vim config

找到需要修改的地方 (注释前加#)

wq保存

查看进程并删除后重启

ps sux | grep smokeping

kill -9 2040 (是问号后面的进程号)

cat /etc/rc.local

复制最后一段命令,回车即完成了本次删除monitor的操作

时间: 2024-08-11 05:44:53

删除monitor配置文件的相关文章

删除PHP配置文件中的注释行

删除空行: sed -i /^[[:space:]]*$/d filename 删除注释行: sed -i '/^;.*/d' filename 仅仅预览的话,去掉-i参数.

删除用户配置文件 (正则表达式)

$parttern = "\b\d{6}\b" $today = Get-Date $hostname = "cnhzpd-47d173x" $profiles = Get-WmiObject -Class win32_userprofile -ComputerName $hostname | Select-Object -Property LocalPath, @{N='time'; E={$_.ConverttoDateTime($_.lastusetime)}

删除用户配置文件

<# .SYNOPSIS Removes user profiles on computers running Windows Vista or later. .DESCRIPTION Removes specified user profiles found on a computer (local or remote) running Windows Vista or later, and logs the information in a CSV file. If no computer

kafka(0.8版本)删除主题(没有在配置文件中配置的情况下)

在没有配置kafka 删除属性的情况下 使用删除主题命令    ./bin/kafka-topics.sh --delete --zookeeper 192.168.28.131:2181,192.168.28.131:2182,192.168.28.131:2183 --topic test之后对当前主题打一个删除标记,需要手动去zookeeper中删除 首先进去zookeeper的bin目录下 ./zkCli.sh   ----->   rmr /broders/主题名  ------>

Share Point 2013使用Windows PowerShell 获取,删除UserProFile

在SharePoint 2013(2010)中我们对于用户配置文件的操作仅限于管理中心其中查看,新建,删除用户配置文件. 虽然我们可以通过如上方式查看,删除用户配置文件,但是这一对一的传统方式显得非常蹩脚虽然SharePoint 2013(2010)提供了非常全面的PowerShell命令但是对于UPS 服务提供命令 相当有限,远不能满足我们的使用需求我们今天带来 SharePoint 2013 的第三方Snapin 扩展其 原有功能其中包括两个命令Get-SPUserProfile该命令将通过

oracle 静默安装、删除实例

2015-11-20 删除实例 #1.关闭数据库 SQL> shutdown abort; #2.删除实例数据文件和dump文件 [[email protected] ~]$find $ORACLE_BASE/ -name $ORACLE_SID -exec rmdir -rf * {} \; [[email protected] ~]$find $ORACLE_BASE/ -name $ORACLE_SID -exec rm -rf * {} \; #3.删除其他配置文件 [[email pr

手动执行把nconf生成的配置文件附加到nagios下

清空temp目录 rm -rf /var/www/nconf/temp/* 执行 /var/www/nconf/bin/generate_config.pl 删除原来配置文件 rm -rf /usr/local/nagios/etc/Default_collector rm -rf /usr/local/nagios/etc/global mv /var/www/nconf/temp/Default_collector /usr/local/nagios/etc/ mv /var/www/nco

小试牛刀之彻底删除KVM虚拟机

1.查看当前虚拟机列表 [email protected]:~$ virsh list --all 2.为了方便方便操作,可以直接使用 virsh,虚拟化的交互式终端. 接下来管理VM的一些动作,都是在virsh的交互式终端上进行 3.通过virsh删除虚拟机,(我这删除的虚拟机名称为:kvm03) 3.1.在删除虚拟机之前,要先将虚拟机关机 说明:域指的是虚拟机的意思,被删除只的是,关机的意思.其实我自己应该也可以理解为开机的运行状态被删除 3.2.在删除虚拟机之前,先看看相关命令的帮助信息

java对properties配置文件的读写操作

1.1.  对properties配置文件的读取 1.1.1.  要读取的文件 配置文件key和value之间用冒号[:]和等于号[=]都是可以的. Test.properties name:\u5F20\u4E09 password:\u5BC6\u7801 age:22 1.1.2.  读取的程序代码 PropertiesTest.java /** * 读取配置文件 * @throws IOException */ @Test public void read() throws IOExce