⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 installation.html

📁 SLP协议在linux下的实现。此版本为1.2.1版。官方网站为www.openslp.org
💻 HTML
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html><head>   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">   <meta name="GENERATOR" content="Mozilla/4.77C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.4.2 i686) [Netscape]">   <title>OpenSLP Users Guide - Installing OpenSLP on Linux</title></head><body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000"><h2>Installing OpenSLP on Linux</h2><hr WIDTH="100%"><h3>Installation</h3>Installing the latest distribution of OpenSLP is easy.&nbsp; Pay attentionto the following steps and you should not have any problems.<br>&nbsp;<ul><li>RPM Installation</li><ul><li>Download the latest RPM file from <a href="http://www.openslp.org">www.openslp.org</a>.Select the appropriate distribution.</li><li>Become root (root is usually the only user that can install packages).</li><li>Install the package. This is typically done with:</li><ul><tt>rpm -Uvh openslp-x.x.x.rpm</tt></ul><li>Make any configuration changes to the <tt>/etc/slp.conf</tt> file thatyou think you need. (see <a href="SlpConf.html">Configuration</a> for details)</li><li>Set up static registrations in the <tt>/etc/slp.reg</tt> file if you needthem. (see <a href="SlpReg.html">Static Registrations</a> for details)</li><li>Start the OpenSLP daemon.</li><ul><tt>/usr/sbin/slpd</tt></ul></ul><li>Tarball Installation</li><ul><li>Download the latest tarball(.tar.gz) file from <a href="http://www.openslp.org">www.openslp.org</a></li><li>Unzip and untar the file into an appropriate directory.</li><ul><tt>tar -zxf openslp-x.x.x.tar.gz</tt></ul><li>Become root (root is usually the only user that can install daemons andlibraries).</li><ul>su root</ul><li>Enter the extracted openslp directory build and install the OpenSLP binaries:</li><ul><tt>./configure</tt></ul><ul><tt>make</tt></ul><ul><tt>make install</tt></ul><li>Make any configuration changes to the <tt>/etc/slp.conf</tt> file thatyou think you need. (see <a href="SlpConf.html">Configuration</a> for details).</li><li>Set up static registrations in the <tt>/etc/slp.reg</tt> file if you needthem. (see <a href="SlpReg.html">Static Registrations</a> for details).</li><li>Start the OpenSLP daemon.</li><ul><tt>/usr/sbin/slpd</tt></ul></ul><li>Make slpd start on boot:</li><ul>You may want to make a few changes to your Linux initialization scriptsso that slpd will start when your machine is booted.&nbsp; Since it isnot always necessary to have slpd running, <b>you should probably readabout when (and why) the OpenSLP daemon has to run in the <a href="index.html">AdvancedTopics</a> section before deciding to changing your init scripts</b>.</ul><li>Remove the distribution directory from your system.</li><ul>Unless you will be doing OpenSLP development work, you will probablywant to remove the distribution directory from your system after OpenSLPis installed.&nbsp; The distribution directory is the one that was createdby the tar -zxf openslp-x.x.x.tar.gz command.&nbsp; During installation,all of the important files were copied out of this directory to the appropriateplaces on you machines file system so it can be deleted with out breakingyour installation of OpenSLP.</ul><li>Add multicast or broadcast routes if necessary.</li><ul>Some operating systems (like Linux) require a route to be set so thatthe host knows which interface should be used to send multicast and generalbroadcast traffic.&nbsp; Most of the time, the default route will be sufficient.<p><tt># route -n</tt><br><tt>Kernel IP routing table</tt><br><tt>Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp;Use Iface</tt><br><tt>192.168.100.2&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0</tt><br><tt>127.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;255.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 lo</tt><br><tt>0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 216.250.131.2540.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 eth</tt>0<p>With the routing table above all multicast and general broadcast willbe sent on eth0&nbsp; (the 0.0.0.0 route is the default route.)<p>If you do not have a default route or you have a multi-homed host, youwill have specify which interface should be used.&nbsp;&nbsp; The followingis an example of a routing table from a multihomed host:<p><tt># route -n</tt><br><tt>Kernel IP routing table</tt><br><tt>Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp;Use Iface</tt><br><tt>192.168.131.0&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth1</tt><br><tt>216.250.131.0&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;255.255.255.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0</tt><br><tt>127.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;255.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 lo</tt><br><tt>0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 216.250.131.2540.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 eth0</tt><p>Notice the default route?&nbsp; This means that multicast traffic willbe sent to eth0.&nbsp;&nbsp; If I don't want multicast traffic to be sentto eth0 I will need to add a special route.<p><tt># route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1</tt><br><tt># route -n</tt><br><tt>Kernel IP routing table</tt><br><tt>Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp;Use Iface</tt><br><tt>192.168.131.0&nbsp;&nbsp; 0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 eth0</tt><p>Now multicast will be sent on eth1 not eth0.<p>To my knowledge, there is no way to send&nbsp; multicast traffic botheth1 and eth0 (at least with Linux) without specialized routing software.&nbsp;&nbsp;&nbsp;Some multihomed machines have NICs that are attached to the same network.&nbsp;In this case, there is usually no need to send multicast on both NICs.&nbsp;&nbsp;If you need specialized routing software take a look at <i>mrouted</i>.<br>&nbsp;</ul><li>Testing to see if your installation of OpenSLP works.</li><ul>The OpenSLP distribution contains a handy command line tool that allowsyou to perform most SLP functions from the command line.&nbsp; The toolis called <tt>slptool</tt> and is built and installed by the OpenSLP makefiles.&nbsp; Look for SLP tool in /usr/bin, /usr/local/bin, or &lt;openslp_source_dir>/slptool/.&nbsp;&nbsp;After you have started slpd, you should be able to issue a query for SLPservice agents using the following command line.<p><tt>$ slptool findsrvs service:service-agent</tt><p>The results of this command should be a list of the hosts that are runningslpd.&nbsp; This indicates that OpenSLP is successfully installed and working.&nbsp;If you do not get any output, then OpenSLP is not installed correctly oris not working.&nbsp;&nbsp; If this happens, please double check that youfollowed build and installation instructions, and read the<a href="http://www.openslp.org/doc/html/faq.html">FAQ</a>.&nbsp;If this does not help, post to the <a href="mailto:openslp-users.lists.sourceforge.net">openslp-users</a>mailing list with as much detail as you can provide.</ul></ul></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -