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]# 
  • 相关阅读:
    面试题:1000!结果中有多少个0
    进程和线程的理解
    面试题:栈内存的多线程
    android中activity和service是否在同一个进程中
    面试题:栈排序
    面试题:递归反转一个栈
    面试题:栈的push和pop序列是否一致
    验证码发送到手机上 购买服务器进行发送短信;阿里云/ 腾讯云
    (十一)腾讯云短信使用
    (十)微信小程序---上传图片chooseImage 与 上传到服务器
  • 原文地址:https://www.cnblogs.com/dream397/p/13289635.html
Copyright © 2011-2022 走看看