📄 ports-nextsteps.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Post-installation Activities</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD 使用手册" href="index.html" /><link rel="UP" title="安装应用程序: Packages 和 Ports" href="ports.html" /><link rel="PREVIOUS" title="使用Ports Collection" href="ports-using.html" /><link rel="NEXT" title="Dealing with Broken Ports" href="ports-broken.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD 使用手册</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="ports-using.html"accesskey="P">后退</a></td><td width="80%" align="center" valign="bottom">章 4. 安装应用程序: Packages 和 Ports</td><td width="10%" align="right" valign="bottom"><a href="ports-broken.html"accesskey="N">前进</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="PORTS-NEXTSTEPS" name="PORTS-NEXTSTEPS">4.6. Post-installationActivities</a></h1><p>After installing a new application you will normally want to read any documentation itmay have included, edit any configuration files that are required, ensure that theapplication starts at boot time (if it is a daemon), and so on.</p><p>The exact steps you need to take to configure each application will obviously bedifferent. However, if you have just installed a new application and are wondering ``Whatnow?'' these tips might help:</p><ul><li><p>Use <span class="CITEREFENTRY"><span class="REFENTRYTITLE">pkg_info</span>(1)</span>to find out which files were installed, and where. For example, if you have justinstalled FooPackage version 1.0.0, then this command</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">pkg_info -L foopackage-1.0.0 | less</kbd></pre><p>will show all the files installed by the package. Pay special attention to files in<tt class="FILENAME">man/</tt> directories, which will be manual pages, <ttclass="FILENAME">etc/</tt> directories, which will be configuration files, and <ttclass="FILENAME">doc/</tt>, which will be more comprehensive documentation.</p><p>If you are not sure which version of the application was just installed, a commandlike this</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">pkg_info | grep -i <varclass="REPLACEABLE">foopackage</var></kbd></pre><p>will find all the installed packages that have <varclass="REPLACEABLE">foopackage</var> in the package name. Replace <varclass="REPLACEABLE">foopackage</var> in your command line as necessary.</p></li><li><p>Once you have identified where the application's manual pages have been installed,review them using <span class="CITEREFENTRY"><spanclass="REFENTRYTITLE">man</span>(1)</span>. Similarly, look over the sample configurationfiles, and any additional documentation that may have been provided.</p></li><li><p>If the application has a web site, check it for additional documentation, frequentlyasked questions, and so forth. If you are not sure of the web site address it may belisted in the output from</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">pkg_info <varclass="REPLACEABLE">foopackage-1.0.0</var></kbd></pre><p>A <var class="LITERAL">WWW:</var> line, if present, should provide a URL for theapplication's web site.</p></li><li><p>Ports that should start at boot (such as Internet servers) will usually install asample script in <tt class="FILENAME">/usr/local/etc/rc.d</tt>. You should review thisscript for correctness and edit or rename it if needed. See <ahref="configtuning-starting-services.html">Starting Services</a> for moreinformation.</p></li></ul></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="ports-using.html"accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">起点</a></td><td width="33%" align="right" valign="top"><a href="ports-broken.html"accesskey="N">前进</a></td></tr><tr><td width="33%" align="left" valign="top">使用Ports Collection</td><td width="34%" align="center" valign="top"><a href="ports.html"accesskey="U">上一级</a></td><td width="33%" align="right" valign="top">Dealing with Broken Ports</td></tr></table></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -