摘要:
1.升级内核到3.10.0以上,安装iproute22.安装0.80版本:#wget -O /usr/local/bin/weave https://raw.githubusercontent.com/zettio/weave/master/weave0.70版本#yum install -y co... 阅读全文
摘要:
#rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org如果失败的话多试几次,感觉网络不是很好#rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm... 阅读全文
摘要:
yum install -y gcc bison flex#tar -xzf iproute2-3.17.0.tar.gz#cdiproute2-3.17.0#sed -i '/^TARGETS/s@arpd@@g' misc/Makefile#make SBINDIR=/sbin#make SBI... 阅读全文
摘要:
yum install -y wget gcc gc bc gd make perl ncurses-devel xz下载地址:https://www.kernel.org#tar -Jxvf linux-3.4.56.tar.xz#mv linux-3.4.56 /usr/src/linux-3.... 阅读全文
摘要:
一.下载registry#yum install -y python-devel libevent-devel python-pip gcc xz-devel#python-pip install docker-registry二.在所有docker宿主机上都执行以下操作#vi /etc/sysco... 阅读全文
摘要:
#iptables -A INPUT -p tcp --dport 5000 -j ACCEPT#service iptables save 阅读全文
摘要:
在 /etc/init.d/docker的start()函数末尾加入:chmod 777 /var/run/docker.sock否则web程序会没有权限去操作 阅读全文
摘要:
一 环境背景python-2.7.8docker 版本 1.15 (*yum安装为1.14版本,需升级为1.15,详见后续步骤)二 获取Docker容器指标【指标可行性分析见笔记:】CPU :usr 和 system Cpu timeMemoryIP三 整体步骤容器指标值获取 Docker P... 阅读全文
摘要:
linux:pip install docker-py 阅读全文
摘要:
1.安装setuptools2.yum install -y mysql-devel python-devel gcc否则会报错:command 'gcc' failed with exit status 13.python setup.py install 阅读全文
摘要:
1.用ROOT登录,修改/etc/my.cnf2.在[mysqld]下加入一行:lower_case_table_names=10:区分大小写,1:不区分大小写3.重新启动数据库即可 阅读全文
摘要:
1. 作为模板的html文件,必须是utf-8编码;2. html文件内容中的charset必须为utf-8,也就是必须包含 阅读全文
摘要:
错误写法:cli.execute('9b2606a50304','echo "bibo">/tmp/1.txt')争取写法:cli.execute('9b2606a50304','bash -c "echo \'yuanyuan\' > /tmp/2.txt"')参考:https://bugzill... 阅读全文
摘要:
# vi /etc/init.d/docker在start()中加入:$exec -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock -d &>> $logfile &如下图: 阅读全文
摘要:
1.涉及到id=‘id’的情况,需要加入 vars=locals() ,因为id在python里有id() 函数db.delete('entries', where = 'id = $id', vars = locals())2.页面跳转raise web.seeother('/')3.页面循环中取... 阅读全文
摘要:
一、Linux下安装1.yum install -y git2.安装pip,参考:https://app.yinxiang.com/shard/s41/sh/0338ba85-5443-453f-b8c1-349a70377e73/7b712e4a6718279862eae0b71de436973.... 阅读全文
摘要:
1.先安装setuptools#python setup.py build#python setup.py install2.安装pip#python setup.py install如果python升级过,要添加软连接,否则还是会提示找不到pip命令#ln -s /usr/local/python... 阅读全文
摘要:
写入数据:curl -X POST -d '[{"name":"foo","columns":["val"],"points":[[23]]}]' 'http://localhost:8086/db/mydb/series?u=root&p=root'查询数据:curl -G 'http://loc... 阅读全文
摘要:
apache:如果采用RPM包安装,安装路径应在 /etc/httpd目录下apache配置文件:/etc/httpd/conf/httpd.confApache模块路径:/usr/sbin/apachectlweb目录:/var/www/html日志目录:/var/log/httpd如果采用源代码... 阅读全文
摘要:
一.安装Mod_wsgi1.先yum -y install httpd-devel,否则会提示没有apxs2.如果在make时 wsgi报错apxs:Error: Command failed with rc=65536,那要在configure时加上--with-python=xxxx这个参数3.... 阅读全文