zoukankan      html  css  js  c++  java
  • vty_read_config: failed to open configuration file Permission denied

    1. [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
      vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
      can't open configuration file [quagga-sdn.conf]
      [root@kunpeng82 sdn-ip-topology]# ls -al
      total 44
      drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
      drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
      drwxrwxrwx. 2 root root 4096 Jun 23 01:56 configs
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga1.conf
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga2.conf
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga3.conf
      -rwxrwxrwx. 1 root root  316 Jun 23 01:56 quagga4.conf
      -rwxrwxrwx. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
      -rwxrwxrwx. 1 root root 5259 Jun 23 01:56 quagga-test1.py
      -rwxrwxrwx. 1 root root  107 Jun 23 01:56 zebra.conf
      [root@kunpeng82 sdn-ip-topology]#
      [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
      vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
      can't open configuration file [quagga-sdn.conf]
      [root@kunpeng82 sdn-ip-topology]# ls -al
      total 44
      drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
      drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
      drwxr-xr-x. 2 root root 4096 Jun 23 01:56 configs
      -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga1.conf
      -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga2.conf
      -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga3.conf
      -rw-r--r--. 1 root root  316 Jun 23 01:56 quagga4.conf
      -rw-r--r--. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
      -rw-r--r--. 1 root root 5259 Jun 23 01:56 quagga-test1.py
      -rw-r--r--. 1 root root  107 Jun 23 01:56 zebra.conf
      [root@kunpeng82 sdn-ip-topology]# chmod 777 /var/log/quagga/
      [root@kunpeng82 sdn-ip-topology]# chmod 777 *
      [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
      vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
      can't open configuration file [quagga-sdn.conf]
      [root@kunpeng82 sdn-ip-topology]# ls -al
      total 44
      drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
      drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
      drwxrwxrwx. 2 root root 4096 Jun 23 01:56 configs
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga1.conf
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga2.conf
      -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga3.conf
      -rwxrwxrwx. 1 root root  316 Jun 23 01:56 quagga4.conf
      -rwxrwxrwx. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
      -rwxrwxrwx. 1 root root 5259 Jun 23 01:56 quagga-test1.py
      -rwxrwxrwx. 1 root root  107 Jun 23 01:56 zebra.conf
      [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf  -u root -g root
      There is no such command.
      Error occured during reading below line.
      router bgp 65000
    [root@kunpeng82 configs]# zebra -d -f zebra.conf  -u root -g root
    [root@kunpeng82 configs]# ps -elf | grep zebra
    0 S root     12333 50677  0  80   0 -  1729 pipe_w 12:22 pts/22   00:00:00 grep --color=auto zebra
    [root@kunpeng82 configs]#             --------------还是没有启动
    [root@kunpeng82 sdn-ip-topology]# zebra -d -C  -f  configs/zebra.conf  -u root -g root
    [root@kunpeng82 sdn-ip-topology]# ps -elf | grep zebra
    0 S root     13381 50677  0  80   0 -  1729 pipe_w 12:28 pts/22   00:00:00 grep --color=auto zebra
    [root@kunpeng82 sdn-ip-topology]#
    [root@kunpeng82 SDN-IP-Ryu]# cp -r sdn-ip-topology /etc/quagga/
    [root@kunpeng82 SDN-IP-Ryu]# ls /etc/quagga/
    sdn-ip-topology  vtysh.conf  zebra.conf
    [root@kunpeng82 SDN-IP-Ryu]# chown -R quagga:quagga /etc/quagga/sdn-ip-topology
    [root@kunpeng82 SDN-IP-Ryu]# zebra -d -C  -f  /etc/quagga/sdn-ip-topology/zebra.conf 
    [root@kunpeng82 SDN-IP-Ryu]# ps -elf | grep zebra
    0 S root     20079 50677  0  80   0 -  1729 pipe_w 12:44 pts/22   00:00:00 grep --color=auto zebra
    [root@kunpeng82 SDN-IP-Ryu]# 
    [root@kunpeng82 SDN-IP-Ryu]# ps -elf | grep zebra
    1 S quagga   20211     1  0  80   0 -   419 do_sel 12:44 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/zebra.conf
    0 S root     20219 50677  0  80   0 -  1729 pipe_w 12:44 pts/22   00:00:00 grep --color=auto zebra
    [root@kunpeng82 SDN-IP-Ryu]# 
  • 相关阅读:
    POJ 2236 Wireless Network(并查集)
    POJ 2010 Moo University
    POJ 3614 Sunscreen(贪心,区间单点匹配)
    POJ 2184 Cow Exhibition(背包)
    POJ 1631 Bridging signals(LIS的等价表述)
    POJ 3181 Dollar Dayz(递推,两个long long)
    POJ 3046 Ant Counting(递推,和号优化)
    POJ 3280 Cheapest Palindrome(区间dp)
    POJ 3616 Milking Time(dp)
    POJ 2385 Apple Catching(01背包)
  • 原文地址:https://www.cnblogs.com/dream397/p/13289635.html
Copyright © 2011-2022 走看看