• 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友,商务沟通v:ai_draw
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

xinetd安装配置

点滴 admin 11年前 (2013-06-23) 3380次浏览 已收录 0个评论 扫描二维码

安装xinetd

[root@localhost local]# tar -zxvf xinetd-2.3.14.tar.gz

[root@localhost local]# cd xinetd-2.3.14

[root@localhost xinetd-2.3.14]# ./configure

[root@localhost xinetd-2.3.14]# make

[root@localhost xinetd-2.3.14]# make install

==========================================

 或者直接在连网的情况下,输入yum install xinetd即可。

配置xinetd

[root@localhost xinetd-2.3.14]# cp /etc/xinetd.conf /etc/xinetd.conf.bak

[root@localhost xinetd-2.3.14]# sed -e ’s/etc/sbin/g’ xinetd/sample.conf > /etc/xinetd.conf

添加运行级符号链接

[root@localhost xinetd-2.3.14]# chmod 754 /etc/rc.d/init.d/xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K49xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K49xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K49xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S23xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S23xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S23xinetd &&

ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K49xinetd

========================================================

 

 启动脚本运行xinetd

[root@localhost mnt]# /etc/rc.d/init.d/xinetd start

touch: cannot touch `/mnt/lockdev/xinetd’: No such file or directory

============================================

创建该目录在次启动正常

[root@localhost mnt]# mkdir -p /mnt/lockdev

[root@localhost mnt]# /etc/rc.d/init.d/xinetd start

[root@localhost mnt]# netstat -antp

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  

tcp        0      0 0.0.0.0:32769               0.0.0.0:*                   LISTEN      1452/rpc.statd     

tcp        0      0 0.0.0.0:37                  0.0.0.0:*                   LISTEN      6300/xinetd        

tcp        0      0 0.0.0.0:7                   0.0.0.0:*                   LISTEN      6300/xinetd        

tcp        0      0 0.0.0.0:13                  0.0.0.0:*                   LISTEN      6300/xinetd

===================================================

配置命令解释

cp /etc/xinetd.conf /etc/xinetd.conf.bak : 保存当前的xinetd.conf文件。

sed -e ’s/etc/sbin/g’ xinetd/sample.config > /etc/xinetd.conf:确保所有的守护进程的路径是/usr/sbin而不是默认的/usr/etc。

ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd, etc. :创建指向xinetd启动脚本的运行级链接,用于在机器启动和关闭时自动运行和停止xinetd。

 

内容

xinetd软件包中包含 xinetd, itox以及 xconv.pl。

具体说明

xinetd

xinetd是internet服务守护进程。

itox

itox是一个用于将inetd.conf文件转化为xinetd.conf格式的工具。

xconv.pl

与itox相似,xconv.pl是一个用于将inetd.conf文件转化为xinetd.conf格式的perl脚本。

喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址