`
hongtoushizi
  • 浏览: 361092 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论
文章列表
阅读目录 1. 启动 2. 队列重置(清空队列、用户等) 3. 关闭 4. 列举所有用户 5. 列举所有队列
我们可以从Docker Hub上下载官方仓库中的镜像,我自己就下载了ubuntu镜像,只有188M左右,很小巧了。但是看了下,里面的软件源还是官方的,而且没有安装vim,所以就打算自己写一个Dockerfile,用它来构建适合自己的ubuntu基础镜像。 deb http://archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted ...................

rrdtool安装

  mac 下: 1:  sudo brew install rrdtool                 2:   sudo pip install python-rrdtool   ubuntu:   1: sudo apt-get install python-rrdtool   centos:   1: yum install python-rrdtool
rrdtool的使用介绍 位于分类 python rrdtool的介绍 rrdtool (round robin database)工具为环状数据库的存储格式。round robin 是一种处理定量数据以及当前元素指针的技术。rrdtool主要用来跟踪对象的变化情况,生成这些变化的走势图,比如业务的访问流量,系统性能,磁盘利用率等趋势图,很多流行监控平台都使用到了rrdtool,比较有名的有cacti,ganglia,monitorix等。官网:
mac下brew install 报错 Password: Error: Cowardly refusing to `sudo brew install' You can use brew with sudo, but only if the brew executable is owned by root. However, this is both not recommended and completely unsupported so do so at your own risk.   原因是这个brew的权限不正确   修改一下这个brew的权限chown roo ...
 Ansible通过模块的方式来完成一些远程的管理工作。可以通过ansible-doc -l查看所有模块,可以使用ansible-doc -s module来查看某个模块的参数,也可以使用ansible-doc help module来查看该模块更详细的信息。下面列出一些常用的模块:   1. setup 可以用来查看远程主机的一些基本信息: ansible -i /etc/ansible/hosts test -m setup   2.ping 可以用来测试远程主机的运行状态: ansible test -m ping
linux系统配置免密码的方式: 1:ssh-keygen -t rsa 生成密钥 2:ssh-copy-id -i ~/.ssh/id_rsa.pub jifeng@jifeng02 把本机的公钥追到jifeng02的 .ssh/authorized_keys 里 3:测试   [plain] view plain copy    
转载:  http://tinyhema.iteye.com/blog/2093795   由于有一些场景不能使用ssh私钥来实现免登,因此需要想其它办法解决一下这个问题。 安装sshpass 试图使用homebrew安装  Shell代码   $ brew install sshpass   Error: No available formula for sshpass  
转载自:  http://www.cnblogs.com/loveis715/p/4644266.html    在2014年,Sam Newman,Martin Fowler在ThoughtWorks的一位同事,出版了一本新书《Building Microservices》。该书描述了如何按照Microservice架构模式设计及搭建一个具有良好扩展性并可持续开发的系统。除此之外,该书还将基于该模式的系统演化流程与Continuous Delivery等当前甚为流行的开发流程结合在了一起,使得Microservice架构模式看起来非常具有吸引力。基于这些原因,该架构模式迅速被业界所熟知, ...
转载自:  http://www.ibm.com/developerworks/cn/opensource/os-cn-python-yield/   您可能听说过,带有 yield 的函数在 Python 中被称之为 generator(生成器),何谓 generator ? 我们先抛开 generator,以一个常见的编程题目来展示 yield 的概念。 如何生成斐波那契數列 斐波那契(Fibonacci)數列是一个非常简单的递归数列,除第一个和第二个数外,任意一个数都可由前两个数相加得到。用计算机程序输出斐波那契數列的前 N 个数是一个非常简单的问题,许多初学者都可以轻易写出如 ...
(1) ➜ ~ sudo mysql.server start Starting MySQL . ERROR! The server quit without updating PID file (/usr/local/var/mysql/yuandeMacBook-Pro.local.pid).       Last login: Sat Oct 10 23:07:52 on ttys000 ➜  ~ sudo krbservicesetup  ➜ ~ sudo mysql.server start Starting MySQL . ERROR! The server ...
  转载自:  https://help.github.com/articles/caching-your-github-password-in-git/   If you're 
转载自: http://mogu.io/search-instance-pre-treatment-24   搜索平台化中预热的需求描述为:当线上集群需要水平扩容时,新部署实例的机器需要用已存在的日志进行预查询,其目的是将用户的常用查询加载到扩容机内存中,最终对外 ...
Git Credential Caching on Mac OS X     Password caching You can set up git so that it won't ask you to type your username and password every time you talk to a remote server. To do this, you need install the osxkeychain credential helper and tell git to use it. If you installed git using ...
  在mac系统下,执行scrapy程序的时候报如下错误:  此错误: “ ImportError: cannot import name xmlrpc_client”    解放方案: export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH   echo "export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH" >> ~/.bashrc       参考资料:  http://stackov ...
Global site tag (gtag.js) - Google Analytics