代码改变世界

ubnutu开启daytime服务

2012-07-23 11:54  Rollen Holt  阅读(1640)  评论(2编辑  收藏  举报

命令操作依次是:

sudo apt-get install xinetd

  1. fupeng@ubuntu:/etc$ cd xinetd.d  
  2. fupeng@ubuntu:/etc/xinetd.d$ ls  
  3. chargen  daytime  discard  echo  time  
  4. fupeng@ubuntu:/etc/xinetd.d$ vi daytime  
  5. fupeng@ubuntu:/etc/xinetd.d$ gedit daytime  
  6. fupeng@ubuntu:/etc/xinetd.d$ chmod 777 daytime  
  7. chmod: changing permissions of `daytime': Operation not permitted  
  8. fupeng@ubuntu:/etc/xinetd.d$ sudo chmod 777 daytime  
  9. fupeng@ubuntu:/etc/xinetd.d$ gedit daytime  
  10. fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd start  
  11.  * Starting internet superserver xinetd                                  [fail]   
  12. fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd start  
  13. [sudo] password for fupeng:   
  14.  * Starting internet superserver xinetd                                  [fail]   
  15. fupeng@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd restart  
  16.  * Stopping internet superserver xinetd                                  [ OK ]   
  17.  * Starting internet superserver xinetd                                  [ OK ]   
  18. fupeng@ubuntu:/etc/xinetd.d$   
  • fupeng@ubuntu:/etc/xinetd.d$ gedit daytime  

    是将此文件中的两个 disable 的值 yes 改为 no  。