systemd + ryu
Posted dream397
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了systemd + ryu相关的知识,希望对你有一定的参考价值。
[root@kunpeng82 ryu]# pwd /root/ryu [root@kunpeng82 ryu]# vi /etc/systemd/system/openflow.service [Unit] Description = openflow controler [Service] #ExecStart=/usr/local/bin/ryu-manager /usr/local/lib/python2.7/dist-packages/ryu/app/simple_switch_13.py ExecStart=/usr/local/bin/ryu-manager /root/ryu/ryu/ryu/app/simple_switch_13.py Restart=always Type=simple [Install] WantedBy=multi-user.target "/etc/systemd/system/openflow.service" 11L, 300C written [root@kunpeng82 ryu]# systemctl list-unit-files --type=service | grep openflow openflow.service disabled [root@kunpeng82 ryu]# systemctl start openflow [root@kunpeng82 ryu]# ps -alxg | grep ryu-manager 4 0 60138 1 20 0 167104 55104 ep_pol Ss ? 0:01 /bin/python3 /usr/local/bin/ryu-manager /root/ryu/ryu/ryu/app/simple_switch_13.py 0 0 60144 59968 20 0 110656 2496 pipe_w S+ pts/0 0:00 grep --color=auto ryu-manager
以上是关于systemd + ryu的主要内容,如果未能解决你的问题,请参考以下文章
SDN安装Ryu及GUI,并解决Disconnected问题