📄 snmp.installation.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Installation</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="snmp.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="snmp.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="snmp.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="snmp.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> Important: In order to use the UCD SNMP package, you need to define <i>NO_ZEROLENGTH_COMMUNITY</i> to <i>1</i> before compiling it. After configuring UCD SNMP, edit <var class="filename">config.h</var> or <var class="filename">acconfig.h</var> and search for <i>NO_ZEROLENGTH_COMMUNITY</i>. Uncomment the #define line. It should look like this afterwards: <div class="example-contents"><div class="cdata"><pre>#define NO_ZEROLENGTH_COMMUNITY 1</pre></div> </div> Now compile PHP <span class="option">--with-snmp[=DIR]</span>. </p> <p class="para"> If you see strange segmentation faults in combination with SNMP commands, you did not follow the above instructions. If you do not want to recompile UCD SNMP, you can compile PHP with the <span class="option">--enable-ucd-snmp-hack</span> switch which will work around the misfeature. </p> <p class="para"> The Windows distribution contains support files for SNMP in the <var class="filename">mibs</var> directory. This directory should be moved to <var class="filename">DRIVE:\usr\mibs</var>, where DRIVE must be replaced with the driveletter where PHP is installed on, e.g.<var class="filename">c:\usr\mibs</var>. </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="snmp.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="snmp.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="snmp.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -