- 博客(17)
- 收藏
- 关注
原创 windows telegraf [agent] Error writing to outputs.influxdb: could not write any address
[outputs.influxdb] When writing to [http://11.114.111.42:8086]: Post http://11.114.111.42:8086/write?consistency=any&db=telegraf: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)[agent] Error wr
2020-07-02 11:28:39
2754
3
原创 mysqlbinlog 查看
添加参数(--base64-output=decode-rows -v)对输出结果解码mysqlbinlog mysql-bin.000921 --start-datetime="2017-11-21 18:00:00" --stop-datetime="2017-11-21 19:00:00" --base64-output=decode-rows -v --result-file=67
2017-11-24 14:10:58
289
原创 Sql Server 'Saving changes is not permitted' error Prevent saving changes that require table re-cr
Saving changes is not permitted. The change you have made requires the following table to be dropped and re-created. You have either made changes to a table that can't be recreated or enabled the op
2017-06-09 17:11:21
628
转载 Python3 的异常处理
转自:http://zengrong.net/post/2143.htmPython3 的异常处理Exception in Python3.Python3 的异常处理,在官方文档的 tutorial 中有说明。这里把常用的异常处理方法都列出来,方便平时查找。捕获异常基类Python3 要求我们的异常必须继承 Exception 类。B
2016-05-27 11:51:21
638
转载 Python换行符问题:\r\n还是\n
windows的换行是\r\n,unix的是\n,mac的是\ropen(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)在Python3,可以通过open函数的newline参数来控制Universal new line mode:读取时候,不指定newlin
2016-05-27 10:38:59
3167
转载 使用BCP导出导入数据
bcp 实用工具可以在 Microsoft SQL Server 实例和用户指定格式的数据文件间大容量复制数据。 使用 bcp 实用工具可以将大量新行导入 SQL Server 表,或将表数据导出到数据文件。 除非与 queryout 选项一起使用,否则使用该实用工具不需要了解 Transact-SQL 知识。 若要将数据导入表中,必须使用为该表创建的格式文件,或者必须了解表的结构以及对于该表
2016-05-27 10:38:31
3323
转载 SQL Server中配置恢复模式的两种方法
用T-SQL设置恢复模式你可以使用“ALTER DATABASE”命令加“SET RECOVERY”语句来修改数据库的恢复模式。例如,下面的查询语句把“AdventureWorks”数据库的恢复模式设置为完全恢复模式。ALTER DATABASE AdventureWorks SET RECOVERY FULL ;你可以查询“sys.databases”的目录视图,
2016-05-27 10:38:02
3129
转载 MSSQL查看数据库端口
通过存储过程查看--查询端口号exec sys.sp_readerrorlog 0, 1, 'listening'通过Sql Server配置管理器(SSCM)
2016-05-27 10:37:38
1832
转载 MSSQL 数据库邮件配置
http://jingyan.baidu.com/article/b24f6c82c11fd286bfe5da28.html注意事项1. 帐户权限 若要发送数据库邮件,则还必须使用 Management Studio 或 sp_addrolemember 将“SQL Server 代理”服务的启动帐户添加到 msdb 数据库中的 DatabaseMailU
2016-05-27 10:37:13
1135
转载 CentOS6.5安装配置Samba
转自:http://www.tangrucheng.com/centos6-5-setup-configure-samba.html本文的场景是虚拟机运行CentOS6.5,本机是Win7,现欲把CentOS上的一个文件夹共享出来,Win的机器可以读写。Samba与window连接需要使用NetBIOS协议,请确认你的Win7系统已经安装了NetBIOS协议。组成Samba
2016-05-27 10:36:28
481
转载 Linux centos关机与重启命令详解
Linux centos关机与重启命令详解与实战 Linux centos重启命令: 1、reboot 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用) 4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用) 如果是通过shut
2016-05-27 10:35:55
389
转载 centOS6.5 命令配置ip地址
首先登陆帐户,用命令查看一下IP配置:ifconfig 用VI命令编辑网络配置文件了,命令:vi /etc/sysconfig/network-scripts/ifcfg-eht0ETH0,为网卡接口以下解说一下网络配置文件内容:DEVICE=eth0TYPE=EthernetUUID=58d64342-6bca-4156-8d
2016-05-27 10:35:20
787
转载 centos架设FTP服务器
1.安装vsftp在这里,我们架设的是虚拟用户,所谓虚拟用户就是没有使用真实的帐户,只是通过某种手段达到映射帐户和设置权限的目的。yum -y install vsftpd在CentOS中,这样就可以完成了一个简单的匿名FTP的搭建。你可以通过访问ftp://yourip来进行,不过这个FTP没有任何权限。2.启动/重启/关闭vsftpd服务器[root@localhost ftp
2016-05-27 10:34:48
344
转载 CentOS 6.5 Transmission 安装
cd /etc/yum.repos.d/CentOS 5 x86wget http://geekery.altervista.org/geekery-el5-i386.repoCentOS 5 x86_64wget http://geekery.altervista.org/geekery-el5-x86_64.repoC
2016-05-27 10:34:15
2496
转载 CentOS pppoe拨号
CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH因为是centos linux,默认可以采用yum方式安装,则采用如下命令安装gcc编译器即可:# yum -y install gcc下载pppoe软件包http://www.roaringpenguin
2016-05-27 10:33:20
432
转载 Sudo 提示用户不在sudoers文件错误
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也
2016-05-27 10:32:30
403
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人