OS模块

摘要: import os# 1.切换路径 d = os.getcwd() #获取当前的工作路径os.chdir('D:\\')#目录的切换print(os.getcwd())# (切换过去怎么回来呢?再chdir一下就回来了)os.chdir(d)print(os.getcwd()) # 2.执行系统命令 阅读全文
posted @ 2018-11-24 10:53 sunny1233901 阅读(109) 评论(0) 推荐(0) 编辑

解决CentOS“Zabbix discoverer processes 75% busy”的问题

摘要: 解决CentOS“Zabbix discoverer processes 75% busy”的问题 运维 立杰 4年前 (2014-08-11) 1104℃ 0评论 在使用Zabbix过程中,当开启自动发现协议后,频繁出现“ Zabbix discoverer processes more than 阅读全文
posted @ 2018-11-23 14:44 sunny1233901 阅读(752) 评论(0) 推荐(0) 编辑

yum运行时提示被锁住了解决办法

摘要: yum运行时提示被锁住了解决办法1、当大家用linux的yum时,是不是经常会遇到下面的情况Loaded plugins: fastestmirrorExisting lock /var/run/yum.pid: another copy is running as pid 3404.Another 阅读全文
posted @ 2018-11-23 12:37 sunny1233901 阅读(750) 评论(0) 推荐(0) 编辑

CentOS修改IP地址

摘要: centos7临时修改IP、永久修改IP centos7临时修改IP、永久修改IP centos7临时修改IP、永久修改IP centos7临时修改IP、永久修改IP 临时修改IP ifconfig eno16777736 192.168.1.101 注意(eno16777736)是默认第一个网络接 阅读全文
posted @ 2018-11-23 12:31 sunny1233901 阅读(2883) 评论(0) 推荐(0) 编辑

zabbix被监控端代理设置

摘要: zabbix被监控端代理设置 安装zabbix-agent客户端 rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm yum install -y zabbix-a 阅读全文
posted @ 2018-11-22 16:30 sunny1233901 阅读(609) 评论(0) 推荐(0) 编辑

wget: command not found 解决方案

摘要: wget: command not found 解决方案 wget command not found 解决方案 问题分析 解决方案 方法一yum安装wget 方法二rpm安装 wget command not found 解决方案 问题分析 解决方案 方法一yum安装wget 方法二rpm安装 w 阅读全文
posted @ 2018-11-22 08:56 sunny1233901 阅读(4313) 评论(0) 推荐(0) 编辑

MYSQL常用命令(转)

摘要: 1.导出整个数据库mysqldump -u 用户名 -p --default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1)mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql2.导出一个表mysqldum 阅读全文
posted @ 2018-11-08 15:40 sunny1233901 阅读(153) 评论(0) 推荐(0) 编辑

Python之迭代器,生成器

摘要: 一,迭代器 1.1什么是可迭代对象? 字符串、列表、元组、字典、集合都可以被for循环,说明他们都是可迭代的。 我们怎么来证明这一点呢? 1.2可迭代协议 我们现在是从结果分析原因,能被for循环的就是“可迭代的”,但是如果正着想,for怎么知道谁是可迭代的呢? 假如我们自己写了一个数据类型,希望这 阅读全文
posted @ 2018-11-07 16:38 sunny1233901 阅读(154) 评论(0) 推荐(0) 编辑

mysql出现ERROR 1819 (HY000)的解决方法

摘要: mysql出现ERROR 1819 (HY000)的解决方法 更新时间:2016年10月22日 09:15:28 作者:九九哥 我要评论 mysql出现ERROR 1819 (HY000)的解决方法 更新时间:2016年10月22日 09:15:28 作者:九九哥 我要评论 这篇文章主要为大家详细介 阅读全文
posted @ 2018-11-06 14:34 sunny1233901 阅读(2159) 评论(0) 推荐(0) 编辑

安装zabbix需要php的两个模块php-bcmath和php-mbstring(转)

摘要: 安装zabbix需要php的两个模块php-bcmath和php-mbstring 原创 Linux操作系统 作者:甲骨文技术支持 时间:2018-02-24 18:35:24 1472 0 安装zabbix需要php的两个模块php-bcmath和php-mbstring 原创 Linux操作系统 阅读全文
posted @ 2018-11-05 16:44 sunny1233901 阅读(3724) 评论(1) 推荐(1) 编辑