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

From ArchWiki
Jump to: navigation, search
(Add translation status. See Template:TranslationStatus (简体中文))
(常见问题: Translate.)
Line 28: Line 28:
 
  # systemctl stop getty@tty5.service getty@tty6.service
 
  # systemctl stop getty@tty5.service getty@tty6.service
  
Users may also change the number of gettys by editing {{ic|/etc/systemd/logind.conf}} and changing the value of {{ic|NAutoVTs}}. By doing it this way, the on-demand spawning will be preserved, whereas the above method will simply have the gettys running from boot.
+
用户也可以通过编辑{{ic|/etc/systemd/logind.conf}},将{{ic|NAutoVTs}}修改为需要的 TTY 个数。用这种方式,按需启动将会保持,而之前的方式将会在启动时就启动 TTY.
  
 
systemd 不使用 {{ic|/etc/inittab}} 文件。
 
systemd 不使用 {{ic|/etc/inittab}} 文件。
Line 85: Line 85:
  
 
{{FAQ
 
{{FAQ
|question=After migrating to systemd, why won't my fakeRAID mount?
+
|question=切换到 systemd 后,为什么 fakeRAID 没有挂载?
|answer=Be sure you use {{bc|# systemctl enable dmraid.service}}
+
|answer=请确保使用了{{bc|# systemctl enable dmraid.service}}
 
}}
 
}}
  
Line 108: Line 108:
  
 
{{FAQ
 
{{FAQ
|question=Status of .service says "active (exited)" in green. (e.g. iptables)
+
|question=.service 状态显示绿色的 "active (exited)" (例如 iptables)
|answer=This is perfectly normal. In the case with iptables it is because there is no daemon to run, it is controlled in the kernel. Therefore, it exits after the rules have been loaded.
+
|answer=这很正常,本例中的 iptables 并不是守护进程,而是由内核控制,所以装载完规则后自动退出了。通过下面命令检查规则是否正确加载
 
+
To check if your iptables rules have been loaded properly:
+
  
 
{{bc|# iptables --list}}}}
 
{{bc|# iptables --list}}}}
  
 
{{FAQ
 
{{FAQ
|question={{ic|Failed to issue method call: File exists}} error
+
|question={{ic|Failed to issue method call: File exists}} 错误
|answer=This happens when using {{ic|systemctl enable}} and the symlink it tries to create in {{ic|/etc/systemd/system/}} already exists. Typically this happens when switching from one display manager to another one (for instance GDM to KDM, which can be enabled with {{ic|gdm.service}} and {{ic|kdm.service}}, respectively) and the corresponding symlink {{ic|/etc/systemd/system/display-manager.service}} already exists.
+
|answer=此错误一般发生在{{ic|systemctl enable}}创建系统连接到{{ic|/etc/systemd/system/}}的时候。一般是在切换显示管理器(例如从 GDM KDM)时出现,这时{{ic|/etc/systemd/system/display-manager.service}} 已经存在。
  
To solve this problem, use {{ic|systemctl -f enable}} to overwrite an existing symlink.}}
+
要解决此问题,使用 {{ic|systemctl -f enable}} 覆盖原有链接。}}

Revision as of 02:10, 24 October 2012

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

常见问题

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

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ