会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
HeJD
博客园
首页
新随笔
联系
订阅
管理
2018年3月29日
【git】忽略已在仓库内的文件
摘要: .gitignore .gitignore作用于未添加入库的文件/文件夹Created with Raphaël 2.1.2用户用户仓库仓库git statusfilter .gitignore展示已修改的文件1、未在仓库内且未被ignore收录的文...
阅读全文
posted @ 2018-03-29 15:26 HeJD
阅读(87)
评论(0)
推荐(0)
编辑
2018年1月14日
记一次Windows Server 2008 服务器被植入挖矿木马处理
摘要: 概览CentOS 6.5转Windows Server 2008 阿里云CES 运行环境:ASP.NET运行环境(2.0/3.5/4.0+MySql5.5) 部署情况:C#部署在IIS7.1上,Python服务部署在Apache2.4,SQL Serv...
阅读全文
posted @ 2018-01-14 01:41 HeJD
阅读(515)
评论(0)
推荐(0)
编辑
2017年11月29日
linux ssh 转发端口及使用
摘要: 1、设置rsa登陆ssh-keygen -t rsa -p3次回车,出现下面的信息,表示rsa生成的位置 Enter file in which the key is (/home/ubuntu/.ssh/id_rsa): Enter new ...
阅读全文
posted @ 2017-11-29 11:10 HeJD
阅读(199)
评论(0)
推荐(0)
编辑
2017年11月14日
查看CentOS版本
摘要: lsb_release -a [root@izwz98ifnmtig506emzy7pz ~]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distribut...
阅读全文
posted @ 2017-11-14 09:43 HeJD
阅读(117)
评论(0)
推荐(0)
编辑
2017年10月25日
python 出现unicode错误解决
摘要: import sysreload(sys)sys.setdefaultencoding('utf-8')
阅读全文
posted @ 2017-10-25 20:51 HeJD
阅读(371)
评论(0)
推荐(0)
编辑
python2.7 01字符串与二进制效率对比
摘要: 01字符串 与 将 01字符串转换为数字的效率对比 用例: 字符串’1001’ 与 0b1001=9import timestarttime=time.time()for i in xrange(1000001): '10000001'=='1...
阅读全文
posted @ 2017-10-25 20:46 HeJD
阅读(154)
评论(0)
推荐(0)
编辑
2017年10月23日
Centos7 下 denyHosts 安装及使用
摘要: 安装撰写博客时,库内的denyhosts版本为2.9yum install -y denyhosts配置配置文件路径vim /etc/denyhosts.conf配置(yum安装时,大部分配置已写好,稍作改动即可)DENY_THRESHOLD_INVA...
阅读全文
posted @ 2017-10-23 10:07 HeJD
阅读(605)
评论(0)
推荐(0)
编辑
2017年10月16日
ubuntu 强制关机后 mysql无法启动
摘要: su root/etc/init.d/mysql restart此处用root启动mysql,时间大约需要5分钟
阅读全文
posted @ 2017-10-16 11:45 HeJD
阅读(265)
评论(0)
推荐(0)
编辑
2017年9月1日
Django 批量插入数据(create)
摘要: 使用 QuerySet.bulk_createcreateList=[]for d in data: createList.append(OJB(*d))OBJ.objects.bulk_create(createList) ...
阅读全文
posted @ 2017-09-01 11:16 HeJD
阅读(246)
评论(0)
推荐(0)
编辑
2017年8月31日
微信小程序 扫码 加载图片
摘要: 官方示例index.wxml 750rpx:小程序定义的宽度index.jsvar imgPath=''Page({ data: { src: imgPath }})在Page()外可以定义变量,此处需要注意,若Page中有多个data...
阅读全文
posted @ 2017-08-31 22:16 HeJD
阅读(369)
评论(0)
推荐(0)
编辑
下一页