摘要: 1.用ROOT登录,修改/etc/my.cnf2.在[mysqld]下加入一行:lower_case_table_names=10:区分大小写,1:不区分大小写3.重新启动数据库即可 阅读全文
posted @ 2015-01-19 12:03 BiboXie 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1. 作为模板的html文件,必须是utf-8编码;2. html文件内容中的charset必须为utf-8,也就是必须包含 阅读全文
posted @ 2015-01-19 12:02 BiboXie 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 错误写法:cli.execute('9b2606a50304','echo "bibo">/tmp/1.txt')争取写法:cli.execute('9b2606a50304','bash -c "echo \'yuanyuan\' > /tmp/2.txt"')参考:https://bugzill... 阅读全文
posted @ 2015-01-19 11:58 BiboXie 阅读(254) 评论(0) 推荐(0) 编辑
摘要: # vi /etc/init.d/docker在start()中加入:$exec -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock -d &>> $logfile &如下图: 阅读全文
posted @ 2015-01-19 11:57 BiboXie 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.涉及到id=‘id’的情况,需要加入 vars=locals() ,因为id在python里有id() 函数db.delete('entries', where = 'id = $id', vars = locals())2.页面跳转raise web.seeother('/')3.页面循环中取... 阅读全文
posted @ 2015-01-19 11:56 BiboXie 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 一、Linux下安装1.yum install -y git2.安装pip,参考:https://app.yinxiang.com/shard/s41/sh/0338ba85-5443-453f-b8c1-349a70377e73/7b712e4a6718279862eae0b71de436973.... 阅读全文
posted @ 2015-01-19 11:55 BiboXie 阅读(2531) 评论(0) 推荐(1) 编辑
摘要: 1.先安装setuptools#python setup.py build#python setup.py install2.安装pip#python setup.py install如果python升级过,要添加软连接,否则还是会提示找不到pip命令#ln -s /usr/local/python... 阅读全文
posted @ 2015-01-19 11:50 BiboXie 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 写入数据:curl -X POST -d '[{"name":"foo","columns":["val"],"points":[[23]]}]' 'http://localhost:8086/db/mydb/series?u=root&p=root'查询数据:curl -G 'http://loc... 阅读全文
posted @ 2015-01-19 11:49 BiboXie 阅读(740) 评论(0) 推荐(0) 编辑
摘要: apache:如果采用RPM包安装,安装路径应在 /etc/httpd目录下apache配置文件:/etc/httpd/conf/httpd.confApache模块路径:/usr/sbin/apachectlweb目录:/var/www/html日志目录:/var/log/httpd如果采用源代码... 阅读全文
posted @ 2015-01-19 11:48 BiboXie 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 一.安装Mod_wsgi1.先yum -y install httpd-devel,否则会提示没有apxs2.如果在make时 wsgi报错apxs:Error: Command failed with rc=65536,那要在configure时加上--with-python=xxxx这个参数3.... 阅读全文
posted @ 2015-01-19 11:47 BiboXie 阅读(613) 评论(0) 推荐(0) 编辑