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

📄 configtuning-appconfig.html

📁 这是很好的学习嵌入式LINUX的文章
💻 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>Application Configuration</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD Handbook" href="index.html" /><link rel="UP" title="Configuration and Tuning" href="config-tuning.html" /><link rel="PREVIOUS" title="Core Configuration"href="configtuning-core-configuration.html" /><link rel="NEXT" title="Starting Services" href="configtuning-starting-services.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /></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 Handbook</th></tr><tr><td width="10%" align="left" valign="bottom"><ahref="configtuning-core-configuration.html" accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 11 Configuration and Tuning</td><td width="10%" align="right" valign="bottom"><ahref="configtuning-starting-services.html" accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="CONFIGTUNING-APPCONFIG" name="CONFIGTUNING-APPCONFIG">11.4Application Configuration</a></h1><p>Typically, installed applications have their own configuration files, with their ownsyntax, etc. It is important that these files be kept separate from the base system, sothat they may be easily located and managed by the package management tools.</p><p>Typically, these files are installed in <tt class="FILENAME">/usr/local/etc</tt>. Inthe case where an application has a large number of configuration files, a subdirectorywill be created to hold them.</p><p>Normally, when a port or package is installed, sample configuration files are alsoinstalled. These are usually identified with a <tt class="FILENAME">.default</tt> suffix.If there are no existing configuration files for the application, they will be created bycopying the <tt class="FILENAME">.default</tt> files.</p><p>For example, consider the contents of the directory <ttclass="FILENAME">/usr/local/etc/apache</tt>:</p><pre class="LITERALLAYOUT">-rw-r--r--  1 root  wheel   2184 May 20  1998 access.conf-rw-r--r--  1 root  wheel   2184 May 20  1998 access.conf.default-rw-r--r--  1 root  wheel   9555 May 20  1998 httpd.conf-rw-r--r--  1 root  wheel   9555 May 20  1998 httpd.conf.default-rw-r--r--  1 root  wheel  12205 May 20  1998 magic-rw-r--r--  1 root  wheel  12205 May 20  1998 magic.default-rw-r--r--  1 root  wheel   2700 May 20  1998 mime.types-rw-r--r--  1 root  wheel   2700 May 20  1998 mime.types.default-rw-r--r--  1 root  wheel   7980 May 20  1998 srm.conf-rw-r--r--  1 root  wheel   7933 May 20  1998 srm.conf.default</pre><p>The file sizes show that only the <tt class="FILENAME">srm.conf</tt> file has beenchanged. A later update of the <b class="APPLICATION">Apache</b> port would not overwritethis changed file.</p></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="configtuning-core-configuration.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="configtuning-starting-services.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Core Configuration</td><td width="34%" align="center" valign="top"><a href="config-tuning.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Starting Services</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting &#60;<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>&#62;.<br />For questions about this documentation, e-mail &#60;<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>&#62;.</small></p></body></html>

⌨️ 快捷键说明

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