当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]没有/etc/sysconfig目录
帖子发表于 : 2008-04-22 16:42 
头像

注册: 2007-04-17 19:15
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
怎么会没有这个目录呢?


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-04-22 16:45 
头像

注册: 2008-03-05 16:16
帖子: 58
送出感谢: 0 次
接收感谢: 0 次
我的也没有


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-04-22 16:59 
头像

注册: 2007-10-19 14:51
帖子: 4953
地址: 深圳
送出感谢: 0 次
接收感谢: 2
有其他代替品


_________________
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-04-22 17:01 
头像

注册: 2006-07-02 11:16
帖子: 12522
地址: 廣州
送出感谢: 0 次
接收感谢: 8
为什么要有


_________________
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-04-22 17:20 
头像

注册: 2007-04-17 19:15
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
yaoms 写道:
有其他代替品

替代品是什么?


页首
 用户资料  
 
6 楼 
 文章标题 :
帖子发表于 : 2008-04-22 17:27 
头像

注册: 2007-10-19 14:51
帖子: 4953
地址: 深圳
送出感谢: 0 次
接收感谢: 2
悄然入尘 写道:
yaoms 写道:
有其他代替品

替代品是什么?
,具体不清楚,sysconfig是干什么的?


_________________
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'


页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2008-04-22 18:00 
头像

注册: 2008-04-18 22:33
帖子: 17
地址: 普洛西恩
送出感谢: 0 次
接收感谢: 0 次
我也没有
参考资料:http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlsysconfig.html

引用:
The /etc/sysconfig directory is where many of the files that control the system configuration are stored. This section lists these files and many of the optional values in the files used to make system changes. To get complete information on these files read the file /usr/doc/initscripts-4.48/sysconfig.txt.

*
/etc/sysconfig/clock
Used to configure the system clock to Universal or local time and set some other clock parameters. An example file:

UTC=false
ARC=false

Options:
o UTC - true means the clock is set to UTC time otherwise it is at local time
o ARC - Set true on alpha stations only. It indicates the ARC console's 42-year time offset is in effect. If not set to true, the normal Unix epoch is assumed.
o ZONE="filename" - indicates the zonefile under the directory /usr/share/zoneinfo that the /etc/localtime file is a copy of. This may be set to:

ZONE="US/Eastern"
*
/etc/sysconfig/init
This file is used to set some terminal characteristics and environment variables. A sample listing:

# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
# column to start "[ OK ]" label in
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
# terminal sequence to set color to a 'failure' color (currently: red)
SETCOLOR_FAILURE="echo -en \\033[1;31m"
# terminal sequence to set color to a 'warning' color (currently: yellow)
SETCOLOR_WARNING="echo -en \\033[1;33m"
# terminal sequence to reset to the default color.
SETCOLOR_NORMAL="echo -en \\033[0;39m"
# default kernel loglevel on boot (syslog will reset this)
LOGLEVEL=1
# Set to something other than 'no' to turn on magic sysrq keys...
MAGIC_SYSRQ=no
# Set to anything other than 'no' to allow hotkey interactive startup...
PROMPT=yes

Options:
o BOOTUP=bootupmode - Choices are color, or verbose. The choice color sets new boot display. The choice verbose sets old style display. Anything else sets a new display without ANSI formatting.
o LOGLEVEL=number - Sets the initial console logging level for the kernel. The default is 7. The values are:
1. emergency, panic - System is unusable
2. alert - Action must be taken immediately
3. crit - Critical conditions
4. err, error (depreciated) - Error conditions
5. warning, warn (depreciated) - Warning conditions
6. notice - Normal but significant conditions
7. info - Informational message
8. debug - Debug level message
o RES_COL=number - Screen column to start status labels at. The Default is 60.
o MOVE_TO_COL=command - A command to move the cursor to $RES_COL.
o SETCOLOR_SUCCESS=command - Set the color used to indicate success.
o SETCOLOR_FAILURE=command - Set the color used to indicate failure.
o SETCOLOR_WARNING=command - Set the color used to indicate warning.
o SETCOLOR_NORMAL=command - Set the color used 囗囗囗 normal color
o MAGIC_SYSRQ=yes|no - Set to 'no' to disable the magic sysrq key.
o PROMPT=yes|no - Set to 'no' to disable the key check for interactive mode.

*
/etc/sysconfig/keyboard
Used to configure the keyboard. Used by the startup script /etc/rc.d/rc.sysinit. An example file:

KEYTABLE="us"

Options:
o KEYTABLE="keytable file" - The line [ KEYTABLE="/usr/lib/kbd/keytables/us.map" ] tells the system to use the file shown for keymapping.
o KEYBOARDTYPE=sun|pc - The selection, "sun", indicates attached on /dev/kbd is a sun keyboard. The selection "pc" indicates a PS/2 keyboard is on the ps/2 port.

*
/etc/sysconfig/mouse
This file is used to configure the mouse. An example file:

FULLNAME="Generic - 2 Button Mouse (PS/2)"
MOUSETYPE="ps/2"
XEMU3="yes"
XMOUSETYPE="PS/2"

Options:
o MOUSETYPE=type - Choices are microsoft, mouseman, mousesystems, ps/2, msbm, logibm, atibm, logitech, mmseries, or mmhittab.
o XEMU3=yes|no - If yes, emulate three buttons, otherwise not.

*
/etc/sysconfig/network
Used to configure networking options. All IPX options default to off. An example file:

NETWORKING=yes
FORWARD_IPV4="yes"
HOSTNAME="mdct-dev3"
GATEWAY="10.1.0.25"
GATEWAYDEV="eth0"

Options:
o NETWORKING=yes|no - Sets network capabilities on or off.
o HOSTNAME="hostname". To work with old software, the /etc/HOSTNAME file should contain the same hostname.
o FORWARD_IPV4=yes|no - Turns the ability to perform IP forwarding on or off. Turn it on if you want to use the machine as a router. Turn it off to use it as a firewall or IP masquerading.
o DEFRAG_IPV4=yes|no - Set this to automatically defragment IPv4 packets. This is good for masquerading, and a bad idea otherwise. It defaults to 'no'.
o GATEWAY="gateway IP"
o GATEWAYDEV="gateway device" Possible values include eth0, eth1, or ppp0.
o NISDOMAIN="nis domain name"
o IPX=yes|no - Turn IPX ability on or off.
o IPXAUTOPRIMARY=on|off - Must not be yes or no.
o IPXAUTOFRAME=on|off
o IPXINTERNALNETNUM="netnum"
o IPXINTERNALNODENUM="nodenum"

*
/etc/sysconfig/static-routes
Configures static routes on a network. Used to set up static routing. An example file:

eth1 net 192.168.199.0 netmask 255.255.255.0 gw 192.168.199.1
eth0 net 10.1.0.0 netmask 255.255.0.0 gw 10.1.0.153
eth1 net 255.255.255.255 netmask 255.255.255.255

o The syntax is:

device net network netmask netmask gw gateway
The device may be a device name such as eth0 which is used to have the route brought up and down as the device is brought up or down. The value can also be "any" to let the system calculate the correct devices at run time.

*
/etc/sysconfig/routed
Sets up dynamic routing policies. An example file:

EXPORT_GATEWAY="no"
SILENT="yes"

Options:
o SILENT=yes|no
o EXPORT_GATEWAY=yes|no

*
/etc/sysconfig/pcmcia
Used to configure pcmcia network cards. An example file:

PCMCIA=no
PCIC=
PCIC_OPTS=
CORE_OPTS=

Options:
o PCMCIA=yes|no
o PCIC=i82365|tcic
o PCIC_OPTS=socket driver (i82365 or tcic) timing parameters
o CORE_OPTS=pcmcia_core options
o CARDMGR_OPTS=cardmgr options

*
/etc/sysconfig/amd
Used to configure the auto mount daemon. An example file:

ADIR=/.automount
MOUNTPTS='/net /etc/amd.conf'
AMDOPTS=

Options:
o ADIR=/.automount (normally never changed)
o MOUNTPTS='/net /etc/amd.conf' (standard automount stuff)
o AMDOPTS= (extra options for AMD)

*
/etc/sysconfig/tape
Used for backup tape device configuration. Options:
o DEV=/dev/nst0 - The tape device. Use the non-rewinding tape for these scripts. For SCSI tapes the device is /dev/nst#, where # is the number of the tape drive you want to use. If you only have one then use nst0. For IDE tapes the device is /dev/ht#. For floppy tape drives the device is /dev/ftape.
o ADMIN=root - The person to mail to if the backup fails for any reason
o SLEEP=5 - The time to sleep between tape operations.
o BLOCKSIZE=32768 - This worked fine for 8mm, then 4mm, and now DLT. An optimal setting is probably the amount of data your drive writes at one time.
o SHORTDATE=$(date +%y:%m:%d:%H:%M) - A short date string, used in backup log filenames.
o DAY=$(date +log-%y:%m:%d) - Used for the log file directory.
o DATE=$(date) - Date string, used in log files.
o LOGROOT=/var/log/backup - Root of the logging directory
o LIST=$LOGROOT/incremental-list - This is the file name the incremental backup will use to store the incremental list. It will be $LIST-{some number}.
o DOTCOUNT=$LOGROOT/.count - For counting as you go to know which incremental list to use.
o COUNTER=$LOGROOT/counter-file - For rewinding when done...might not use.
o BACKUPTAB=/etc/backuptab - The file in which we keep our list of backup(s) we want to make.

*
/etc/sysconfig/sendmail
An example file:

DAEMON=yes
QUEUE=1h

Options:
o DAEMON=yes|no - yes implies -bd
o QUEUE=1h - Given to sendmail as -q$QUEUE. The -q option is not given to sendmail if /etc/sysconfig/sendmail exists and QUEUE is empty or undefined.

*
/etc/sysconfig/i18n
Controls the system font settings. The language variables are used in /etc/profile.d/lang.sh. An example i18n file:

LANG="en_US"
LC_ALL="en_US"
LINGUAS="en_US"

Options:
o LANG= set locale for all categories, can be any two letter ISO language code.
o LC_CTYPE= localedata configuration for classification and conversion of characters.
o LC_COLLATE= localedata configuration for collation (sort order) of strings.
o LC_MESSAGES= localedata configuration for translation of yes and no messages.
o LC_NUMERIC= localedata configuration for non-monetary numeric data.
o LC_MONETARY= localedata configuration for monetary data.
o LC_TIME= localedata configuration for date and time.
o LC_ALL= localedata configuration overriding all of the above.
o LANGUAGE= can be a : separated list of ISO language codes.
o LINGUAS= can be a ' ' separated list of ISO language codes.
o SYSFONT= any font that is legal when used as /usr/bin/consolechars -f $SYSFONT ... (See console-tools package for consolechars command)
o UNIMAP= any SFM (screen font map, formerly called Unicode mapping table - see consolechars(8))

/usr/bin/consolechars -f $SYSFONT --sfm $UNIMAP
o SYSFONTACM= any ACM (application charset map - see consolechars(8))

/usr/bin/consolechars -f $SYSFONT --acm $SYSFONTACM

The above is used by the /sbin/setsysfont command (which is run by rc.sysinit at boot time.)

*
/etc/sysconfig/network-scripts/ifup:
/etc/sysconfig/network-scripts/ifdown:
These are symbolic links to /sbin/ifup and /sbin/ifdown, respectively. These symlinks are here for legacy purposes only. They will probably be removed in future versions. These scripts take one argument normally: the name of the device (e.g. eth0). They are called with a second argument of "boot" during the boot sequence so that devices that are not meant to be brought up on boot (ONBOOT=no, see below) can be ignored at that time.

*
/etc/sysconfig/network-scripts/network-functions
This is not really a public file. Contains functions which the scripts use for bringing interfaces up and down. In particular, it contains most of the code for handling alternative interface configurations and interface change notification through netreport.

*
/etc/sysconfig/network-scripts/ifcfg-interface
/etc/sysconfig/network-scripts/ifcfg-interface-clone
Defines an interface. An example file called ifcfg-eth0:

DEVICE="eth0"
IPADDR="10.1.0.153"
NETMASK="255.255.0.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

The /etc/sysconfig/network-scripts/ifcfg-interface-clone file only contains the parts of the definition that are different in a "clone" (or alternative) interface. For example, the network numbers might be different, but everything else might be the same, so only the network numbers would be in the clone file, but all the device information would be in the base ifcfg file.

Base items in the above two files:
o NAME="friendly name for users to see" - Most important for PPP. Only used in front ends.
o DEVICE="name of physical device"
o IPADDR=
o NETMASK=
o GATEWAY=
o ONBOOT=yes|no
o USERCTL=yes|no
o BOOTPROTO=none|bootp|dhcp - If BOOTPROTO is not "none", then the only other item that must be set is the DEVICE item; all the rest will be determined by the boot protocol. No "dummy" entries need to be created.
Base items being deprecated:
o NETWORK="will be calculated automatically with ifcalc"
o BROADCAST="will be calculated automatically with ifcalc"
Ethernet-only items:
o {IPXNETNUM,IPXPRIMARY,IPXACTIVE}_{802_2,802_3,ETHERII,SNAP} configuration matrix for IPX. Only used if IPX is active. Managed from /etc/sysconfig/network-scripts/ifup-ipx
PPP/SLIP items:
o PERSIST=yes|no
o MODEMPORT=device - An example device is /dev/modem.
o LINESPEED=speed - An example speed is 115200.
o DEFABORT=yes|no - Tells netcfg whether or not to put default abort strings in when creating/editing the chat script and/or dip script for this interface.
PPP-specific items
o WVDIALSECT="list of sections from wvdial.conf to use" - If this variable is set, then the chat script (if it exists) is ignored, and wvdial is used to open the PPP connection.
o PEERDNS=yes|no - Modify /etc/resolv.conf if peer uses msdns extension.
o DEFROUTE=yes|no - Set this interface as default route?
o ESCAPECHARS=yes|no -Simplified interface here doesn't let people specify which characters to escape; almost everyone can use asyncmap 00000000 anyway, and they can set PPPOPTIONS to asyncmap foobar if they want to set options perfectly).
o HARDFLOWCTL=yes|no - Yes implies "modem crtscts" options.
o PPPOPTIONS="arbitrary option string" - It is placed last on the command line, so it can override other options like asyncmap that were specified differently.
o PAPNAME="name $PAPNAME" - On pppd command line. Note that the "remotename" option is always specified as the logical ppp device name, like "ppp0" (which might perhaps be the physical device ppp1 if some other ppp device was brought up earlier...), which makes it easy to manage pap/chap files -- name/password pairs are associated with the logical ppp device name so that they can be managed together.
o REMIP="remote ip address" - Normally unspecified.
o MTU=
o MRU=
o DISCONNECTTIMEOUT="number of seconds" The current default is 5. This is the time to wait before re-establishing the connection after a successfully-connected session terminates before attempting to establish a new connection.
o RETRYTIMEOUT="number of seconds" - The current default is 60. This is the time to wait before re-attempting to establish a connection after a previous attempt fails.
* /etc/sysconfig/network-scripts/chat-interface - This is the chat script for PPP or SLIP connection intended to establish the connection. For SLIP devices, a DIP script is written from the chat script; for PPP devices, the chat script is used directly.

*
/etc/sysconfig/network-scripts/dip-interface
A write-only script created from the chat script by netcfg. Do not modify this. In the future, this file may disappear by default and created on-the-fly from the chat script if it does not exist.

*
/etc/sysconfig/network-scripts/ifup-post
Called when any network device EXCEPT a SLIP device comes up. Calls /etc/sysconfig/network-scripts/ifup-routes to bring up static routes that depend on that device. Calls /etc/sysconfig/network-scripts/ifup-aliases to bring up aliases for that device. Sets the hostname if it is not already set and a hostname can be found for the IP for that device. Sends SIGIO to any programs that have requested notification of network events. It could be extended to fix up nameservice configuration, call arbitrary scripts, etc, as needed.

*
/etc/sysconfig/network-scripts/ifup-routes
Set up static routes for a device. An example file:

#!/bin/sh

# adds static routes which go through device $1

if [ "$1" = "" ]; then
echo "usage: $0 <net-device>"
exit 1
fi

if [ ! -f /etc/sysconfig/static-routes ]; then
exit 0
fi

#note the trailing space in the grep gets rid of aliases
grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
/sbin/route add -$args $device
done


*
/etc/sysconfig/network-scripts/ifup-aliases
Bring up aliases for a device.

*
/etc/sysconfig/network-scripts/ifdhcpc-done
Called by dhcpcd once dhcp configuration is complete; sets up /etc/resolv.conf from the version dhcpcd dropped in /etc/dhcpc/resolv.conf


_________________
代码:
写代码就像打太极,读代码正如品散文... 

www.outsky.org.cn


页首
 用户资料  
 
8 楼 
 文章标题 :
帖子发表于 : 2008-05-06 13:17 
头像

注册: 2007-08-02 12:18
帖子: 146
送出感谢: 0 次
接收感谢: 0 次
这个目录在 RedHat/Fedora 系统才有,在Debian/Ubuntu上有其他的相应的目录


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译