首页 > 其他分享 >System has not been booted with systemd as init system (PID 1). Can't operate on Debian bulleye

System has not been booted with systemd as init system (PID 1). Can't operate on Debian bulleye

时间:2024-08-10 12:16:53浏览次数:10  
标签:systemd PID system been System init

昨天为了安装 mariadb ,不小心可能安装了sysinit的东西,在启动gogs服务时 报了这个错

'System has not been booted with systemd as init system (PID 1). Can't operate'

找到了解决方案:

我的理解是这样的 linux 系统大致有两种管理服务的方式,一种是 sysinit 一种是 systemctl 

现在主流都是 systemd 这种方式了

安装什么不小心 装了 sysinit 这种东西。只看到屏幕 哗啦哗啦 看到好多remove...... remove 

事后回想 应该是那会,把systemd 给干成 sysinit 了。之后操作 就 莫名其妙的 出现 

'System has not been booted with systemd as init system (PID 1). Can't operate'

这样的提示了。

解决方案:

apt-get iinstall systemd-sysv

装回来就是了。

只是很多时候,因为不够了解 不够清楚,导致走了很多弯路,浪费了很多时间。与搜到这里的诸位共勉 一同进步 吧

 

标签:systemd,PID,system,been,System,init
From: https://www.cnblogs.com/macleo/p/18352157

相关文章

  • MSPM0G3057学习记录(二)电机PID闭环控制
    目录一、PID原理讲解  1.比例增益(Proportional): 2.  积分时间(Integral): 3.  微分时间(Derivative):二、PID控制原理图三、位置式PID公式  四、参考代码(一)五、参考代码(二) 一、PID原理讲解          PID(Proportional-Integral-Derivative)闭环控......
  • System to practice
    1、Linux中哪个系统调用可以用于设置一个定时器,当时间到时,发送一个信号给进程?(B)a)setitimer()b)alarm()c)timer_create()d)time()tips:timer_create()是一个用于创建定时器的系统调用函数,定义在POSIX标准中,属于Linux系统的时间管理功能。它用于创建一个定时器对象,并......
  • System类day12
    /*System类:和系统相关操作的类publicstaticvoidgc()垃圾回收的publicstaticvoidexit(intstatus)强制结束java进程publicstaticlongcurrentTimeMillis()获取当前系统的时间戳,毫秒形式*/publicclassSystemDemo1{......
  • systemctl 如何自定义添加服务
    创建一个服务文件:在/etc/systemd/system/目录下创建一个以.service结尾的文件,比如myservice.service[Unit]Description=MyServiceAfter=network.target[Service]ExecStart=/path/to/your/service/executableWorkingDirectory=/path/to/your/service/directoryUser=......
  • 什么是PID/PID算法
    什么是PID?一、PID的基本概念PID控制算法通过计算误差(即系统输出与期望值之间的差值),并基于该误差进行比例、积分和微分运算,来调整系统的控制输入,以实现快速、准确的控制。PID控制因其结构简单、稳定性好、工作可靠、调整方便等特点,成为工业控制中的主要技术之一。详情了解视频pi......
  • 如何在Docker容器中的Linux系统(Ubuntu + Centos Linux)里面使用systemctl
    前言正常情况下Docker容器里面运行的Linux是没有systemd进程的,所以不能正常开启systemctl我们还是希望使用systemd来管理我们的服务,如何开启systemd呢?通常,Docker容器是为了运行单个应用程序而设计的,而不是一个完整的操作系统。因此,通常容器中不需要像systemd这样复杂的初始......
  • Intrusion Prevention System(入侵防御系统)
    IPS入侵防御系统ips基于行为检测、特征库匹配以及威胁建模等方法,检测入侵行为(包括木马、蠕虫,病毒等),不同于常用的ids,入侵防御系统有主动的反制手段,通过一定的响应方式,实时地中止入侵行为。产生的原因:随着互联网的不断壮大网络中的威胁也日益增多道高一尺魔高一丈多年来攻......
  • systemd
    ......
  • Lindenmayer systems (or L-systems)
    Amongthemostconspicuouspropertiesofaplantshapearesymmetryand self-similarity. importturtlefromdataclassesimportdataclassWIDTH=800HEIGHT=600PEDESTRAL=50#asimpleplantwithabudAXIOM="A"RULES={"A"......
  • Robot Operating System——深度解析单线程执行器(SingleThreadedExecutor)执行逻辑
    大纲创建SingleThreadedExecutor新增Nodeadd_nodetrigger_entity_recollectcollect_entities自旋等待get_next_executablewait_for_workget_next_ready_executableTimerSubscriptionServiceClientWaitableAnyExecutableexecute_any_executable参考资料在ROS2中,我......