官术网_书友最值得收藏!

Startup options

OpenSIPS can be started using the init scripts or opensipsctl utility. If you start OpenSIPS using the init scripts, you can stop it using only the init scripts. The same is valid if you start using the opensipsctl utility.

Starting, stopping, and restarting OpenSIPS using the init scripts is shown here:

/etc/init.d/opensips start|stop|restart

Starting, stopping, and restarting OpenSIPS using the opensipsctl utility is as follows:

opensipsctl start|stop|restart

The OpenSIPS executable has several start up options. These options allow you to change the configuration of the daemon. Some of the most useful are as follows:

  • -C: To check the configuration file.
  • -D -E -dddddd: To check the module loading. Don't use for production as it binds the first interface only.

There are lots of others that allow you to fine-tune your configuration. Check the following help line:

version: opensips 2.1.0dev-tls (i386/linux)
Usage: opensips -l address [-l address ...] [options]
Options:
 -f file Configuration file 
 -c Check configuration file for errors
 -C Similar to '-c' but checks the flags of exported
 functions from included route blocks
 -l address Listen on the specified address/interface [proto:]addr[:port], where proto=udp|tcp and
 addr= host|ip_address|interface_name. 
 -l udp:127.0.0.1:5080, -l eth0:5062.
 -n processes Number of child processes to fork per interface
 (default: 8)
 -r Use dns to check if is necessary to add a "received="
 field to a via
 -R Same as `-r` but use reverse dns;
 (to use both use `-rR`)
 -v Turn on "via:" host checking when forwarding replies
 -d Debugging mode (multiple -d increase the level)
 -D Do not fork into daemon mode
 -F Daemon mode, but leave main process foreground
 -E Log to stderr
 -T Disable tcp
 -N processes Number of tcp child processes 
 -W method poll method
 -V Version number
 -h This help message
 -b nr Maximum receive buffer size 
 -m nr Size of shared memory allocated in Megabytes
 -M nr Size of pkg memory allocated in Megabytes
 -w dir Change the working directory to "dir" (default "/")
 -t dir Chroot to "dir"
 -u uid Change uid
 -g gid Change gid
 -P file Create a pid file
 -G file Create a pgid file
主站蜘蛛池模板: 方城县| 宁德市| 新蔡县| 泗阳县| 阿合奇县| 叶城县| 灵璧县| 麻城市| 巴楚县| 山阳县| 乌兰浩特市| 扎囊县| 称多县| 石河子市| 清河县| 苏尼特左旗| 永兴县| 许昌市| 吉安县| 涟源市| 福清市| 云和县| 上犹县| 隆化县| 乌鲁木齐市| 隆子县| 禹城市| 扶余县| 台东市| 万源市| 枝江市| 玉屏| 改则县| 庆云县| 台中市| 安化县| 白城市| 多伦县| 武定县| 金坛市| 璧山县|