命令操作依次是:
sudo apt-get install xinetd
- fupeng@ubuntu:/etc$ cd xinetd.d
- fupeng@ubuntu:/etc/xinetd.d$ ls
- chargen daytime discard echo time
- fupeng@ubuntu:/etc/xinetd.d$ vi daytime
- fupeng@ubuntu:/etc/xinetd.d$ gedit daytime
- fupeng@ubuntu:/etc/xinetd.d$ chmod 777 daytime
- chmod: changing permissions of `daytime': Operation not permitted
- fupeng@ubuntu:/etc/xinetd.d$ sudo chmod 777 daytime
- fupeng@ubuntu:/etc/xinetd.d$ gedit daytime
- fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd start
- * Starting internet superserver xinetd [fail]
- fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd start
- [sudo] password for fupeng:
- * Starting internet superserver xinetd [fail]
- fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd restart
- * Stopping internet superserver xinetd [ OK ]
- * Starting internet superserver xinetd [ OK ]
- fupeng@ubuntu:/etc/xinetd.d$
- fupeng@ubuntu:/etc/xinetd.d$ gedit daytime
是将此文件中的两个 disable 的值 yes 改为 no 。