我正在学习从零开始构建一个linux系统版本,遵循https://www.linuxfromscratch.org/lfs/view/stable-systemd/index.html在VirtualBox 6.1上的说明,但是当我引导内核时,它给了我一个内核恐慌的错误--不是同步:没有找到工作init。
[ 1.355071] Run /sbin/init as init process
[ 1.356040] with arguments:
[ 1.356645] /sbin/init
[ 1.357965] with environment:
[
我通过zypper在openSUSE Leap 15.0上安装了对接器17.09.1。不幸的是,启动码头服务总是超时。
systemctl start docker的输出:
Job for docker.service failed because a timeout was exceeded.
See "systemctl status docker.service" and "journalctl -xe" for details.
journalctl的输出:
Oct 28 10:38:06 linux-j8zs dockerd[3786]: time
Linux Ubuntu18.Linux10.3. MariaDBMariaDB服务无法启动引发systemd错误。原因似乎是userid包含一个点(.)。 systemd[1]: Invalid user/group name or numeric ID: myuser.withdot 配置: 来自MariaDB的服务文件是/etc/systemd/system/mariadb.service.d/migrated.conf,,它包含: [Service]
User=myuser.withdot
我使用pacman -Syu升级了Arch,然后使用了reboot。机器未能启动,因此我切换到tty进行故障排除。以下是我的发现。
systemctl --failed显示systemd-modules-load.service失败了。
sudo journalctl -u systemd-modules-load.service显示:
Failed to look up module alias `crypto_user`: Function not implemented
Failed to look up modules alias `sg`: Function not implemen
在运行timedatectl以检查我的系统时钟是否通过NTP同步时,我得到以下信息:
~> timedatectl
Failed to query server: The name org.freedesktop.timedate1 was not provided by any .service files
systemd-timedated.service已经运行。
~> systemctl status systemd-timedated.service
● systemd-timedated.service - Time & Date Service
Lo
Apache无法使用mod_wsgi启动Django WEB应用程序,我不能找出原因。
启动apache的错误是这样的
linux-ua6r:/etc/apache2/vhosts.d # /etc/init.d/apache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -n' for details.
linux-ua6r:/etc/apa
我刚开始使用Linux。
最近我安装了Ubuntu,当Windows在20秒或更短的时间内启动时,Ubuntu启动非常缓慢(大约7分钟)。
我有这个:
:~$ systemd-analyze
Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=0).
Please try again later.
Hint: Use 'systemctl list-jobs' to see active jobs
还有这个
~$ systemctl list-jobs
通过linux机器的控制台,我得到了下面的错误。
Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.
systemd-fsck[160090]: /dev/sda3: Inodes that were part of a corrupted orp
所以我在一台Arch Linux机器上试验systemd的使用。
正在看文档,我明白了-
add init=/bin/systemd to your kernel cmdline in your bootloader
这到底是什么意思?
我对linux并不完全陌生,但我在理解如何完成这项工作时遇到了一些麻烦。非常感谢任何精致的阐述!
我的Ubuntu16.04 Xenial需要很长时间来初始化,我不知道为什么,但是它是在一些推荐的更新之后开始的。
这是我的“/etc/缺省/grub”:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
要在linux服务器上将java应用程序作为服务在后台运行,有很多可能。我可以使用的"Java Service Wrapper“或者开源fork "Yet Another Java Service Wrapper”或者其他我还不知道的东西。我可以使用Supervisor,甚至是Systemd。
我的印象是,Java包装器只是使用必要的选项集(堆最大大小,可能是类路径等)运行应用程序,监视它,必要时重新启动它,或者向应用程序发送重新加载、关闭或重新启动的信号。我认为使用Supervisor和Systemd都很容易实现。
我倾向于认为这些包装器在linux init还基于Syste
嗨,我使用virtualbox安装了debian 9。我使用ACPI支持定制内核,如下所示
Power management and ACPI options --->
[*] ACPI (Advanced Configuration and Power Interface) Support --->
<M> Button
当我单击带有send the shutdown signal选项的virtualbox窗口的“关闭”按钮时,什么都没有发生
我确保插入了内核button模块。
# lsmod | grep button
button
在我的GRUB 2配置中,我的系统启动良好:
linux /bzImage root=/dev/sda2 init=/usr/lib/systemd/systemd ro
但是,如果我用相应的UUID替换/dev/sda2:
linux /bzImage root=UUID=666c2eee-193d-42db-a490-4c444342bd4e init=/usr/lib/systemd/systemd ro
然后在引导过程中失败:
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,
模块vfat在引导时不加载,并且试图强制modprobe vfat问题产生错误
modprobe: ERROR: could not insert 'vfat': Unknown symbol in module, or unknown parameter (see dmesg)
带着dmesg线
[ 663.227894] fat: Unknown symbol __bread_gfp (err 0)
[ 663.227924] fat: Unknown symbol __getblk_gfp (err 0)
在启动时还有两条失败消息建议我运行systemctl stat