首页 > Web开发 > 详细

Netdisco CentOS 6安装步骤

时间:2016-04-30 18:22:55      阅读:855      评论:0      收藏:0      [点我收藏+]

yum -y install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel make automake gcc

useradd netdisco

yum  -y install postgresql-server
service postgresql initdb; service postgresql start; chkconfig postgresql on

su - postgres
createuser -DRSP netdisco
createdb -O netdisco netdisco

su - netdisco
curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco

mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/

~/bin/netdisco-daemon status

mkdir ~/environments
cp ~/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml ~/environments
chmod 600 ~/environments/deployment.yml
vi ~/environments/deployment.yml

~/bin/netdisco-deploy ./oui.txt

~/bin/netdisco-web start
~/bin/netdisco-daemon start

http://ip:5000

run as netdisco user:
bin/netdisco-web get_init_file > netdisco-web
bin/netdisco-daemon get_init_file > netdisco-daemon

run as root user:
mv /home/netdisco/netdisco-web /etc/init.d/
mv /home/netdisco/netdisco-daemon /etc/init.d/
chown root:root /etc/init.d/netdisco-*
chmod 755 /etc/init.d/netdisco-*
chkconfig --add netdisco-web
chkconfig --add netdisco-daemon


refer: https://metacpan.org/pod/App::Netdisco


本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1769210

Netdisco CentOS 6安装步骤

原文:http://hj192837.blog.51cto.com/655995/1769210

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!