PHPCon Poland 2024


» Net-SNMP 的 Windows 版本, 在目录 mibs中包含了支持 SNMP 的文件。此目录应该作为 MIBDIRS 被添加到 Windows 的环境变量中,其值是 mibs 目录的完整路径。 例如 c:\usr\mibs

add a note

User Contributed Notes 1 note

bug404 at free dot fr
9 years ago
If net-snmp was not installed in default c:\usr folder (which may be the case for most peoples used to Windows instead of Linux), then, you should also create SNMP_PERSISTENT_DIR system environment variable with "persistent" folder location (located in snmp folder).
Otherwise, php will will create its own persistant folder in c:/usr/snmp/persistent folder, which is probably not what you want !
To Top