Add markup around a few filenames and literal text.
Fix the markup choice in a few instances. Cuddle up the ending </programlisting> with the previous line. Turn $FreeBSD$ in to $FreeBSD$ to prevent expansion. Add Emacs local variables section.
This commit is contained in:
parent
b72caddbbc
commit
65d647eb30
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=9934
1 changed files with 49 additions and 43 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
|
|
||||||
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v 1.2 2001/07/14 01:09:40 chern Exp $
|
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v 1.3 2001/07/16 20:35:38 nik Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="config-tuning">
|
<chapter id="config-tuning">
|
||||||
|
@ -394,7 +394,7 @@ exit 0
|
||||||
<title>Configuration Files</title>
|
<title>Configuration Files</title>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>/etc Layout</title>
|
<title><filename>/etc</filename> Layout</title>
|
||||||
<para>There are a number of directories in which configuration
|
<para>There are a number of directories in which configuration
|
||||||
information is kept. These include:</para>
|
information is kept. These include:</para>
|
||||||
|
|
||||||
|
@ -402,42 +402,42 @@ exit 0
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>/etc</entry>
|
<entry><filename>/etc</filename></entry>
|
||||||
<entry>Generic system configuration information; data here is
|
<entry>Generic system configuration information; data here is
|
||||||
system-specific.</entry>
|
system-specific.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/etc/defaults</entry>
|
<entry><filename>/etc/defaults</filename></entry>
|
||||||
<entry>Default versions of system configuration files.</entry>
|
<entry>Default versions of system configuration files.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/etc/mail</entry>
|
<entry><filename>/etc/mail</filename></entry>
|
||||||
<entry>Extra sendmail configuration, other MTA configuration
|
<entry>Extra sendmail configuration, other MTA configuration
|
||||||
files.
|
files.
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/etc/ppp</entry>
|
<entry><filename>/etc/ppp</filename></entry>
|
||||||
<entry>Configuration for both user- and kernel-ppp programs.
|
<entry>Configuration for both user- and kernel-ppp programs.
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/etc/namedb</entry>
|
<entry><filename>/etc/namedb</filename></entry>
|
||||||
<entry>Default location for bind(8) data. Normally the
|
<entry>Default location for bind(8) data. Normally the
|
||||||
boot file is located here, and contains a directive to
|
boot file is located here, and contains a directive to
|
||||||
refer to other data in /var/db.</entry>
|
refer to other data in /var/db.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/usr/local/etc</entry>
|
<entry><filename>/usr/local/etc</filename></entry>
|
||||||
<entry>Configuration files for installed applications.
|
<entry>Configuration files for installed applications.
|
||||||
May contain per-application subdirectories.</entry>
|
May contain per-application subdirectories.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/usr/local/etc/rc.d</entry>
|
<entry><filename>/usr/local/etc/rc.d</filename></entry>
|
||||||
<entry>Start/stop scripts for installed applications.</entry>
|
<entry>Start/stop scripts for installed applications.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>/var/db</entry>
|
<entry><filename>/var/db</filename></entry>
|
||||||
<entry>Persistent system-specific data files, eg. bind(8) zone
|
<entry>Persistent system-specific data files, eg. bind(8) zone
|
||||||
files, database files, and so on.</entry>
|
files, database files, and so on.</entry>
|
||||||
</row>
|
</row>
|
||||||
|
@ -467,18 +467,18 @@ exit 0
|
||||||
<tgroup cols="2">
|
<tgroup cols="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>nameserver</entry>
|
<entry><literal>nameserver</literal></entry>
|
||||||
<entry>The IP address of a nameserver the resolver
|
<entry>The IP address of a nameserver the resolver
|
||||||
should query. The servers are queried in the order
|
should query. The servers are queried in the order
|
||||||
listed with a maximum of three.</entry>
|
listed with a maximum of three.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>search</entry>
|
<entry><literal>search</literal></entry>
|
||||||
<entry>Search list hostname lookup. This is normally
|
<entry>Search list hostname lookup. This is normally
|
||||||
determined by the domain of the local hostname.</entry>
|
determined by the domain of the local hostname.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>domain</entry>
|
<entry><literal>domain</literal></entry>
|
||||||
<entry>The local domain name.</entry>
|
<entry>The local domain name.</entry>
|
||||||
</row>
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -489,8 +489,7 @@ exit 0
|
||||||
|
|
||||||
<programlisting>search foobar.com
|
<programlisting>search foobar.com
|
||||||
nameserver 147.11.1.11
|
nameserver 147.11.1.11
|
||||||
nameserver 147.11.100.30
|
nameserver 147.11.100.30</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para>&man.dhclient.8; usually rewrites
|
<para>&man.dhclient.8; usually rewrites
|
||||||
<filename>resolv.conf</filename> with information received from the
|
<filename>resolv.conf</filename> with information received from the
|
||||||
|
@ -498,7 +497,7 @@ nameserver 147.11.100.30
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>/etc/hosts</title>
|
<title><filename>/etc/hosts</filename></title>
|
||||||
|
|
||||||
<indexterm><primary>hosts</primary></indexterm>
|
<indexterm><primary>hosts</primary></indexterm>
|
||||||
|
|
||||||
|
@ -511,7 +510,7 @@ nameserver 147.11.100.30
|
||||||
a local record of Internet names, reducing the need to query
|
a local record of Internet names, reducing the need to query
|
||||||
externally for commonly accessed names.</para>
|
externally for commonly accessed names.</para>
|
||||||
|
|
||||||
<programlisting># $FreeBSD: doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v 1.2 2001/07/14 01:09:40 chern Exp $
|
<programlisting># $FreeBSD$
|
||||||
#
|
#
|
||||||
# Host Database
|
# Host Database
|
||||||
# This file should contain the addresses and aliases
|
# This file should contain the addresses and aliases
|
||||||
|
@ -540,17 +539,16 @@ nameserver 147.11.100.30
|
||||||
# to invent your own network numbers but instead get one from your
|
# to invent your own network numbers but instead get one from your
|
||||||
# network provider (if any) or from the Internet Registry (ftp to
|
# network provider (if any) or from the Internet Registry (ftp to
|
||||||
# rs.internic.net, directory `/templates').
|
# rs.internic.net, directory `/templates').
|
||||||
#
|
#</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para><filename>/etc/hosts</filename> takes on the simple format of:</para>
|
<para><filename>/etc/hosts</filename> takes on the simple format
|
||||||
<programlisting>[Internet address] [offical hostname] [alias1] [alias2] ...
|
of:</para>
|
||||||
</programlisting>
|
|
||||||
|
<programlisting>[Internet address] [offical hostname] [alias1] [alias2] ...</programlisting>
|
||||||
|
|
||||||
<para>For example:</para>
|
<para>For example:</para>
|
||||||
|
|
||||||
<programlisting>10.0.0.1 myRealHostname.foobar.com myRealHostname foobar1 foobar2
|
<programlisting>10.0.0.1 myRealHostname.foobar.com myRealHostname foobar1 foobar2</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para>Consult &man.hosts.5; for more information.</para>
|
<para>Consult &man.hosts.5; for more information.</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
@ -562,7 +560,7 @@ nameserver 147.11.100.30
|
||||||
<indexterm><primary>log files</primary></indexterm>
|
<indexterm><primary>log files</primary></indexterm>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>syslog.conf</title>
|
<title><filename>syslog.conf</filename></title>
|
||||||
|
|
||||||
<indexterm><primary>syslog.conf</primary></indexterm>
|
<indexterm><primary>syslog.conf</primary></indexterm>
|
||||||
|
|
||||||
|
@ -570,7 +568,7 @@ nameserver 147.11.100.30
|
||||||
for the &man.syslogd.8; program. It indicates which types
|
for the &man.syslogd.8; program. It indicates which types
|
||||||
of syslog messages are logged to particular log files.</para>
|
of syslog messages are logged to particular log files.</para>
|
||||||
|
|
||||||
<programlisting># $FreeBSD: doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v 1.2 2001/07/14 01:09:40 chern Exp $
|
<programlisting># $FreeBSD$
|
||||||
#
|
#
|
||||||
# Spaces ARE valid field separators in this file. However,
|
# Spaces ARE valid field separators in this file. However,
|
||||||
# other *nix-like systems still insist on using tabs as field
|
# other *nix-like systems still insist on using tabs as field
|
||||||
|
@ -600,15 +598,14 @@ cron.* /var/log/cron
|
||||||
!startslip
|
!startslip
|
||||||
*.* /var/log/slip.log
|
*.* /var/log/slip.log
|
||||||
!ppp
|
!ppp
|
||||||
*.* /var/log/ppp.log
|
*.* /var/log/ppp.log</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para>Consult the &man.syslog.conf.5; manpage for more
|
<para>Consult the &man.syslog.conf.5; manpage for more
|
||||||
information.</para>
|
information.</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>newsyslog.conf</title>
|
<title><filename>newsyslog.conf</filename></title>
|
||||||
|
|
||||||
<indexterm><primary>newsyslog.conf</primary></indexterm>
|
<indexterm><primary>newsyslog.conf</primary></indexterm>
|
||||||
|
|
||||||
|
@ -630,7 +627,7 @@ cron.* /var/log/cron
|
||||||
certain periodic time/date.</para>
|
certain periodic time/date.</para>
|
||||||
|
|
||||||
<programlisting># configuration file for newsyslog
|
<programlisting># configuration file for newsyslog
|
||||||
# $FreeBSD: doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v 1.2 2001/07/14 01:09:40 chern Exp $
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
# logfilename [owner:group] mode count size when [ZB] [/pid_file] [sig_num]
|
# logfilename [owner:group] mode count size when [ZB] [/pid_file] [sig_num]
|
||||||
/var/log/cron 600 3 100 * Z
|
/var/log/cron 600 3 100 * Z
|
||||||
|
@ -648,8 +645,7 @@ cron.* /var/log/cron
|
||||||
/var/log/daily.log 640 7 * @T00 Z
|
/var/log/daily.log 640 7 * @T00 Z
|
||||||
/var/log/weekly.log 640 5 1 $W6D0 Z
|
/var/log/weekly.log 640 5 1 $W6D0 Z
|
||||||
/var/log/monthly.log 640 12 * $M1D0 Z
|
/var/log/monthly.log 640 12 * $M1D0 Z
|
||||||
/var/log/console.log 640 5 100 * Z
|
/var/log/console.log 640 5 100 * Z</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<para>Consult the &man.newsyslog.8; manpage for more
|
<para>Consult the &man.newsyslog.8; manpage for more
|
||||||
information.</para>
|
information.</para>
|
||||||
|
@ -657,7 +653,7 @@ cron.* /var/log/cron
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>sysctl.conf</title>
|
<title><filename>sysctl.conf</filename></title>
|
||||||
|
|
||||||
<indexterm><primary>sysctl.conf</primary></indexterm>
|
<indexterm><primary>sysctl.conf</primary></indexterm>
|
||||||
<indexterm><primary>sysctl</primary></indexterm>
|
<indexterm><primary>sysctl</primary></indexterm>
|
||||||
|
@ -673,9 +669,7 @@ cron.* /var/log/cron
|
||||||
|
|
||||||
<programlisting>kern.logsigexit=0 # Do not log fatal signal exits (e.g. sig 11)
|
<programlisting>kern.logsigexit=0 # Do not log fatal signal exits (e.g. sig 11)
|
||||||
compat.linux.osname=FreeBSD
|
compat.linux.osname=FreeBSD
|
||||||
compat.linux.osrelease=4.3-STABLE
|
compat.linux.osrelease=4.3-STABLE</programlisting>
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -696,19 +690,20 @@ compat.linux.osrelease=4.3-STABLE
|
||||||
modify system settings.</para>
|
modify system settings.</para>
|
||||||
|
|
||||||
<para>To view all readable variables:</para>
|
<para>To view all readable variables:</para>
|
||||||
<programlisting>&prompt.user; <userinput>sysctl -a</userinput>
|
|
||||||
</programlisting>
|
<screen>&prompt.user; <userinput>sysctl -a</userinput></screen>
|
||||||
|
|
||||||
<para>To read a particular variable, for example,
|
<para>To read a particular variable, for example,
|
||||||
<literal>kern.maxproc</literal>:</para>
|
<literal>kern.maxproc</literal>:</para>
|
||||||
|
|
||||||
<programlisting>&prompt.user; <userinput>sysctl kern.maxproc</userinput>
|
<screen>&prompt.user; <userinput>sysctl kern.maxproc</userinput>
|
||||||
kern.maxproc: 1044</programlisting>
|
kern.maxproc: 1044</screen>
|
||||||
|
|
||||||
<para>To set a particular variable, use the <literal>=</literal>
|
<para>To set a particular variable, use the <literal>=</literal>
|
||||||
option:</para>
|
option:</para>
|
||||||
<programlisting>&prompt.root; <userinput>sysctl kern.maxfiles=5000</userinput>
|
|
||||||
kern.maxfiles: 2088 -> 5000</programlisting>
|
<screen>&prompt.root; <userinput>sysctl kern.maxfiles=5000</userinput>
|
||||||
|
kern.maxfiles: 2088 -> 5000</screen>
|
||||||
|
|
||||||
<para>Settings of sysctl variables are usually either strings, numbers,
|
<para>Settings of sysctl variables are usually either strings, numbers,
|
||||||
or booleans. A boolean being 1 for yes or a 0 for no.</para>
|
or booleans. A boolean being 1 for yes or a 0 for no.</para>
|
||||||
|
@ -719,6 +714,7 @@ kern.maxfiles: 2088 -> 5000</programlisting>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Sysctl Variables</title>
|
<title>Sysctl Variables</title>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>vfs.vmiodirenable</title>
|
<title>vfs.vmiodirenable</title>
|
||||||
|
|
||||||
|
@ -803,7 +799,6 @@ kern.maxfiles: 2088 -> 5000</programlisting>
|
||||||
update of it, e.g. make installworld, can run it out of space and
|
update of it, e.g. make installworld, can run it out of space and
|
||||||
cause the update to fail.</para>
|
cause the update to fail.</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1 id="configtuning-kernel-limits">
|
<sect1 id="configtuning-kernel-limits">
|
||||||
|
@ -839,3 +834,14 @@ kern.maxfiles: 2088 -> 5000</programlisting>
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Local Variables:
|
||||||
|
mode: sgml
|
||||||
|
sgml-declaration: "../chapter.decl"
|
||||||
|
sgml-indent-data: t
|
||||||
|
sgml-omittag: nil
|
||||||
|
sgml-always-quote-attributes: t
|
||||||
|
sgml-parent-document: ("../book.sgml" "part" "chapter")
|
||||||
|
End:
|
||||||
|
-->
|
Loading…
Reference in a new issue