码迷,mamicode.com
首页 > 其他好文 > 详细

systemd + ryu

时间:2020-06-17 11:00:40      阅读:51      评论:0      收藏:0      [点我收藏+]

标签:targe   python2   des   art   files   multi   --   python   emctl   

[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

标签:targe   python2   des   art   files   multi   --   python   emctl   

原文地址:https://www.cnblogs.com/dream397/p/13150796.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!