My Blogs
Posts tagged with "Linux"
log-store analyse
Published 2023年02月24日 17:47 by james
process-exporter: Prometheus exporter that mines /proc to report on selected processes.
# process_exporter_config.yml
process_names:
- comm:
- squid
- prometheus
- alertmanager
- nginx
- haproxy
- …
自动配置Ubuntu开发环境
Published 2013年03月13日 22:52 by james
准备工作
安装Ubuntu
如果是机器安装,首先你需要准备Ubuntu的安装光盘,按照引导一步一步安装即可。
如果只是用于个人学习,我建议使用虚拟机来安装Ubuntu,可以从Linux镜像去下载对应版本的镜像,国内我推荐从网易开源镜像上去下载对应的镜像。接下来就可以在虚拟机上安装Ubuntu了。
安装Ruby
既然是自动配置,就一定会用到脚本,这里选择的脚本语言是Ruby,因此我们需要首先安装Ruby。
Windows
下载RubyIntaller,双击直接安装即可。
Ubuntu
sudo apt-get install ruby
OS X
默认OS X已经自带了Ruby程序,如果没有特别的版本需求,一般不需要单独安装。
检查环境并安装相关依赖
gem update
如果无法更新,可能是GFW的问题,建议更换RubyGem源。
gem sources --remove …