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]# 
  • 相关阅读:
    Dispatcher及线程操作
    MVVM中轻松实现Command绑定(三)任意事件的Command
    MVVM Light中的Message
    Prism
    Prism的IEventAggregator事件聚合器, 事件订阅发布, ViewModel之间的通讯
    文件写操作--WriteLog
    【Golang】Debug :decoding dwarf section info at offset 0x0: too short
    【Golang 接口自动化03】 解析接口返回XML
    【Golang 接口自动化02】使用标准库net/http发送Post请求
    【Golang 接口自动化01】使用标准库net/http发送Get请求
  • 原文地址:https://www.cnblogs.com/dream397/p/13289635.html
Copyright © 2011-2022 走看看