repsol.home.com:repsol[/usr/ports]#uname -a
FreeBSD repsol.home.com 4.6-RELEASE FreeBSD 4.6-RELEASE #8: Fri Jul 11 23:44:23 CST 2002 [email protected]:/usr/src/sys/compile/repsol i386
repsol.home.com:repsol[/usr/ports]#cd /usr/ports/net/net-snmp4
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#make install
過程中間省略
===> Generating temporary packing list
===> Compressing manual pages for ucd-snmp-4.2.5
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for ucd-snmp-4.2.5
===> SECURITY NOTE:
This port has installed the following startup scripts which may cause
network services to be started at boot time.
/usr/local/etc/rc.d/snmpd.sh ============================================> 這邊找找
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://net-snmp.sourceforge.net/
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#which snmpd
/usr/local/sbin/snmpd
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#whereis snmpd
/usr/local/sbin/snmpd
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#more /usr/local/etc/rc.d/snmpd.sh
/usr/local/sbin/snmpd
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#ls -l /usr/local/etc/rc.d/snmpd.sh
-rwxr-xr-x 1 root wheel 22 5 13 20:17 /usr/local/etc/rc.d/snmpd.sh ====> 確定是否可執行權限
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#/usr/local/etc/rc.d/snmpd.sh ==>直接執行
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#ps ax |grep snmpd
54235 p3 S 0:00.08 /usr/local/sbin/snmpd
一切都很正常
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#make clean
===> Cleaning for autoconf213-2.13.000227_2
===> Cleaning for libtool-1.3.4_4
===> Cleaning for m4-1.4_1
===> Cleaning for ucd-snmp-4.2.5
repsol.home.com:repsol[/usr/ports/net/net-snmp4]#
書籤