zoukankan      html  css  js  c++  java
  • ubnutu开启daytime服务

    命令操作依次是:

    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  。

       

  • 相关阅读:
    Codeforces Round #590 D. Distinct Characters Queries
    线段树模板加模板题POJ3468
    hihoCoder挑战赛5 C 与链
    HDU 5044 Tree 树链剖分
    HYSBZ 1901 Dynamic Rankings 树状数组套主席树
    POJ 2761 Feed the dogs 主席树
    POJ 2104 K-th Number 主席树 区间第K大
    HDU 4547 CD操作 LCA
    POJ 1470 Closest Common Ancestors 离线LCA
    HYSBZ 1036 树的统计Count 树链剖分 线段树
  • 原文地址:https://www.cnblogs.com/rollenholt/p/2604723.html
Copyright © 2011-2022 走看看