Difference between revisions of "Systemd FAQ (简体中文)"

From ArchWiki
Jump to: navigation, search
(常见问题: Translate.)
(update translation.)
Line 2: Line 2:
 
[[Category:Boot process (简体中文)]]
 
[[Category:Boot process (简体中文)]]
 
[[en:Systemd FAQ]]
 
[[en:Systemd FAQ]]
{{TranslationStatus (简体中文)|Systemd_FAQ|2012-10-24|230780}}
+
{{TranslationStatus (简体中文)|Systemd_FAQ|2012-11-05|232403}}
 
== 常见问题 ==
 
== 常见问题 ==
 
最新的已知问题,参见:[http://cgit.freedesktop.org/systemd/systemd/tree/TODO TODO]。
 
最新的已知问题,参见:[http://cgit.freedesktop.org/systemd/systemd/tree/TODO TODO]。
Line 17: Line 17:
  
 
  # ln -sf /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty9.service
 
  # ln -sf /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty9.service
# systemctl daemon-reload
 
 
  # systemctl start getty@tty9.service
 
  # systemctl start getty@tty9.service
  
Line 25: Line 24:
  
 
  # rm /etc/systemd/system/getty.target.wants/getty@tty5.service /etc/systemd/system/getty.target.wants/getty@tty6.service
 
  # rm /etc/systemd/system/getty.target.wants/getty@tty5.service /etc/systemd/system/getty.target.wants/getty@tty6.service
# systemctl daemon-reload
 
 
  # systemctl stop getty@tty5.service getty@tty6.service
 
  # systemctl stop getty@tty5.service getty@tty6.service
  
Line 45: Line 43:
 
|answer=自己写一个 getty@tty1.service 文件
 
|answer=自己写一个 getty@tty1.service 文件
  
把 {{ic|/usr/lib/systemd/system/getty@.service}} 复制到 {{ic|/etc/systemd/system/getty.target.wants/getty@tty1.service}},修改 {{ic|TTYVTDisallocate}} 为 {{ic|no}}.
+
把 {{ic|/usr/lib/systemd/system/getty@.service}} 复制到 {{ic|/etc/systemd/system/getty@tty1.service}},修改 {{ic|TTYVTDisallocate}} 为 {{ic|no}}.
 
}}
 
}}
  
Line 52: Line 50:
 
|answer=systemd 不支持 2.6.39 版本之前的内核。
 
|answer=systemd 不支持 2.6.39 版本之前的内核。
  
这里有一些必须/推荐的编译设置,但并不全:
+
这里有一些必须/推荐的编译设置,可能不全:
 
+
{{bc|1='''General setup'''
 +
CONFIG_FHANDLE=y
 
  CONFIG_AUDIT=y (recommended)
 
  CONFIG_AUDIT=y (recommended)
  CONFIG_AUDIT_LOGINUID_IMMUTABLE=y (not required, may break sysvinit compat)
+
  CONFIG_AUDIT_LOGINUID_IMMUTABLE=y (not required, may break sysvinit compatibility)
 
  CONFIG_CGROUPS=y
 
  CONFIG_CGROUPS=y
 +
'''-> Namespaces support'''
 +
    CONFIG_NET_NS=y (for private network)
 +
'''Networking support -> Networking options'''
 
  CONFIG_IPV6=[y<nowiki>|</nowiki>m] (highly recommended)
 
  CONFIG_IPV6=[y<nowiki>|</nowiki>m] (highly recommended)
  CONFIG_UEVENT_HELPER_PATH=""
+
'''Device Drivers'''
CONFIG_DEVTMPFS=y
+
  '''-> Generic Driver Options'''
CONFIG_DEVTMPFS_MOUNT=y (required if you don't use an initramfs)
+
    CONFIG_UEVENT_HELPER_PATH=""
  CONFIG_RTC_DRV_CMOS=y (highly recommended)
+
    CONFIG_DEVTMPFS=y
 +
    CONFIG_DEVTMPFS_MOUNT=y (required if you don't use an initramfs)
 +
  '''-> Real Time Clock'''
 +
    CONFIG_RTC_DRV_CMOS=y (highly recommended)
 +
'''File systems'''
 
  CONFIG_FANOTIFY=y (required for readahead)
 
  CONFIG_FANOTIFY=y (required for readahead)
 
  CONFIG_AUTOFS4_FS=[y<nowiki>|</nowiki>m]
 
  CONFIG_AUTOFS4_FS=[y<nowiki>|</nowiki>m]
  CONFIG_TMPFS_POSIX_ACL=y (recommended, if you want to use pam_systemd.so)
+
  '''-> Pseudo filesystems'''
CONFIG_NAMESPACES=y (for Private*=yes)
+
    CONFIG_TMPFS_POSIX_ACL=y (recommended, if you want to use pam_systemd.so)}}
CONFIG_NET_NS=y (for PrivateNetwork=yes)
+
CONFIG_FHANDLE=y
+
 
}}
 
}}
  

Revision as of 07:27, 5 November 2012

翻译状态: 本文是英文页面 Systemd_FAQ翻译,最后翻译时间:2012-11-05,点击这里可以查看翻译后英文页面的改动。

常见问题

最新的已知问题,参见:TODO

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ