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

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.

主站蜘蛛池模板: 花莲市| 三原县| 留坝县| 藁城市| 河东区| 冕宁县| 浮梁县| 呈贡县| 茶陵县| 庄河市| 高邑县| 民县| 屯门区| 余庆县| 德化县| 紫阳县| 马公市| 牡丹江市| 巧家县| 桃园市| 婺源县| 城口县| 罗城| 樟树市| 贡嘎县| 大宁县| 嵊泗县| 敦化市| 德保县| 渭南市| 临江市| 靖江市| 南漳县| 建宁县| 沙河市| 黄平县| 广东省| 浏阳市| 肥东县| 游戏| 靖宇县|