配置文件详解

Spam Locker的主配置文件为config/main.cf. 配置文件格式为

parameter  value
  • 启动参数配置

监听主机

host localhost

监听端口

port 10030
listen	1024
  • 守护进程参数配置

运行用户账号和用户组

user           root
group          root

设置是否为守护进程模式

setsid          1
  • 日志配置参数

日志文件配置

log_file        /var/log/slockd.log

日志级别配置

# 0 - err , 1 - warn, 2 - notice
# 3 - info, 4 - debug
log_level       4
  • 进程文件配置
pid_file        /var/run/slockd.pid
  • 派生进程配置
# min_spare_servers must less than min_servers!
min_servers             2
min_spare_servers       2
max_servers             50
# how many request a child should serve and exit
max_requests            1
# anvil plugin need child_communication set to 1
child_communication     1
  • 插件相关配置

插件目录配置

plugin_dir              plugins

插件配置文件

plugin_conf             config/plugin.cf
 
slockd/config/file.txt · 最后更改: 2007/05/05 22:45
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki