摘要: 解压包 单线程编译: # gcc -O -mcmodel=medium -DSTREAM_ARRAY_SIZE=100000000 -mcmodel=large -DNTIME=20 stream.c -o stream.o 多线程编译: # gcc -O -mcmodel=medium -fope 阅读全文
posted @ 2020-04-24 16:11 monster_ygs 阅读(305) 评论(0) 推荐(0) 编辑
摘要: spec2006 相关链接 http://www.spec.org/cpu2006/Docs/tools-build.html 在spec2006的目录下执行 ulimit -s unlimited ulimit -c unlimited #. shrcsource shrcrelocate 然后在 阅读全文
posted @ 2020-04-17 16:38 monster_ygs 阅读(618) 评论(0) 推荐(0) 编辑
摘要: Internal Server Error: /demo/machineinfo.htmlTraceback (most recent call last): File "C:\Python27\lib\site-packages\django\core\handlers\exception.py" 阅读全文
posted @ 2018-08-31 17:26 monster_ygs 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 1. 创建用户及访问目录 mkdir -p /home/user/testuser 创建用户目录 useradd testuser -d /home/user/testuser -M 创建testuser用户 echo "123" |passwd --stdin testuser 给testuser 阅读全文
posted @ 2018-08-31 13:47 monster_ygs 阅读(2772) 评论(0) 推荐(0) 编辑
摘要: 通过django自带的类库,来加密解密很方便,下面来简单介绍下; 导入包: from django.contrib.auth.hashers import make_password, check_password make_password 是生成密码 check_password是效验密码 ma 阅读全文
posted @ 2018-08-31 13:33 monster_ygs 阅读(2332) 评论(0) 推荐(0) 编辑
摘要: 刚开始时候的状态 后来装了docker后 阅读全文
posted @ 2017-08-28 17:40 monster_ygs 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 执行bash ./bin/zkServer.sh statusZooKeeper JMX enabled by defaultUsing config: /data/zookeeper-3.4.9/bin/../conf/zoo.cfgError contacting service. It is 阅读全文
posted @ 2017-08-28 15:25 monster_ygs 阅读(940) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 def exchange_mask(mask): """ 转换子网掩码格式 """ # 计算二进制字符串中 '1' 的个数 count_bit = lambda bin_str: len([i for i in bin_str if i=='1']) # 分割字符串格式 阅读全文
posted @ 2017-07-13 09:21 monster_ygs 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: http://mp.weixin.qq.com/s?__biz=MzA4MjEyNTA5Mw==&mid=2652565527&idx=1&sn=840c1ce854afc29bea9aaced35e4f78d&chksm=8464d85db313514b67d4bf7e559844f548fdc8 阅读全文
posted @ 2017-07-06 09:24 monster_ygs 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 在Python中,文件操作主要来自os模块,主要方法如下: os.listdir(dirname):列出dirname下的目录和文件os.getcwd():获得当前工作目录os.curdir:返回当前目录('.')os.chdir(dirname):改变工作目录到dirname os.path.is 阅读全文
posted @ 2017-06-04 10:37 monster_ygs 阅读(4086) 评论(0) 推荐(0) 编辑