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

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.

主站蜘蛛池模板: 乌苏市| 新密市| 绥化市| 台南市| 扬州市| 泰兴市| 芜湖县| 临安市| 娄烦县| 运城市| 香港| 呼和浩特市| 五大连池市| 青川县| 德化县| 泗阳县| 嘉禾县| 灯塔市| 桂平市| 高陵县| 新龙县| 乌鲁木齐县| 苍溪县| 曲麻莱县| 铁力市| 沾化县| 资兴市| 丹棱县| 温宿县| 常熟市| 上虞市| 莆田市| 永福县| 武平县| 廊坊市| 屏东县| 荥阳市| 兰溪市| 道真| 蒙自县| 长垣县|