minion
客户端标识默认采用主机名,也可以修改配置中的id来指定minion的名字
vim /mnt/config/salt/minion
1 2 3 |
|
查看minion状态,并且可以使用正则
PS:必须在MASTER上操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
客户端标识默认采用主机名,也可以修改配置中的id来指定minion的名字
vim /mnt/config/salt/minion
1 2 3 |
|
查看minion状态,并且可以使用正则
PS:必须在MASTER上操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
原文出处:http://blog.coocla.org/301.html
配置文件/etc/salt/master
interface
默认接口:0.0.0.0(所有的网络地址接口)
绑定到本地的某个网络接口
1
|
|
publish_port
默认值:4505
设置master与minion的认证通信端口
1
|
|
user
默认值:root
运行salt进程的用户
1
|
|
max_open_files
每一个minion连接到master,至少要使用一个文件描述符,如果足够多的minion连接到master上,你将会从控制台上看到
1 2 3 |
|
默认值这个值取决于ulimit -Hn的值,即系统的对打开文件描述符的硬限制
如果你希望重新设置改值或者取消设置,记住这个值不能超过硬限制,提高硬限制取决于你的操作系统或分配,一个好的方法是internet找到对应操作系统的硬限制设置,比如这样搜索:
1 2 3 |
|
默认值:5
启动用来接收或应答minion的线程数。如果你有很多minion,而且minion延迟你的应答,你可以适度的提高该值. 在点对点的系统环境中使用时,该值不要被设置为3以下,但是可以将其设置为1
1
|
|
gret_port
默认值:4506
这个端口是master用来发送命令或者接收minions的命令执行返回信息
1
|
|
pidfile
默认值:/var/run/salt-master.pid
指定master的pid文件位置
1
|
|
root_dir
默认值:/
指定该目录为salt运行的根目录,改变它可以使salt从另外一个目录开始运行,好比chroot
1
|
|
pki_dir
默认值:/etc/salt/pki
这个目录是用来存放pki认证秘钥
1
|
|
epel源或者centos源都有
1 2 |
|
1 2 3 4 5 6 7 |
|
由于我配置文件目录更改,所以有些增加的选项都是非必要的,参考即可
vim /etc/salt/master 配置文件
1 2 3 |
|
本篇文章转自王强blog
blog地址:maptail展现中国地图
github地址:maptail-github
maptail is a realtime map view of GeoIP data. Attach it to your server to track visitors, tail a log, pipe to its stdin or use it as a library to build your own implementation. Just emit IP addresses to it from any source and you’ll automagically get a cool map with yellow dots and stuff like that streamed in with websockets or whatever transport you’d like to use.
npm install maptail -g
Omit the -g
to install as a module.
$ maptail -f nohup.out
$ tail -f nohup.out | maptail -h my.host.com -p 3000