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

Lab—Running OpenSER at the Linux Boot

Step 1: Include openSER in the linux boot.

cd /usr/src/openser-1.2.2-tls/packaging/debian
cp openser.default /etc/default/openser
cp openser.init /etc/init.d/openser
update-rc.d openser defaults 99

Step 2: Edit the /etc/openser/openser.cfg file and remove the line fork=no (even if it has C-style remarks). The init script looks for the instruction fork=no, even if commented.

Step 3: Make sure that the script openser.init has the necessary permissions

cd /etc/init.d
chmod 755 openser

Step 4: Edit /etc/default/openser.cfg, change the memory parameter to 128MB and the RUN_OPENSER to yes.

Step 5: Edit the init script to make sure that the daemon is pointing to the right directory:

vi /etc/init.d/openser

File before making changes:

DAEMON=/usr/sbin/openser

File after making changes:

DAEMON=/sbin/openser

Step 6: Restart the computer to see if OpenSER starts. Confirm using:

ps-ef |grep openser.

Note

It is highly recommended that you change the username and password used to run openser in the /etc/init.d/openser file.

主站蜘蛛池模板: 葵青区| 磐安县| 沽源县| 台南市| 南通市| 鄂州市| 富平县| 双柏县| 婺源县| 贵德县| 隆尧县| 三台县| 东莞市| 桂东县| 灵川县| 兴义市| 陆丰市| 福安市| 资兴市| 浪卡子县| 临朐县| 桃源县| 佛教| 收藏| 建阳市| 印江| 青岛市| 新营市| 岳阳县| 军事| 江源县| 准格尔旗| 昌黎县| 大石桥市| 新宁县| 民乐县| 沧州市| 大同县| 上犹县| 海口市| 赤城县|