Giter VIP home page Giter VIP logo

Comments (6)

dong-lufei avatar dong-lufei commented on June 28, 2024

How to enable or manage this version of process service?

I get an error as soon as I use the command

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

from centos-wsl.

felixserna avatar felixserna commented on June 28, 2024

Create a file "/etc/wsl.conf" with content like this:

[boot]
systemd=true

And reboot wsl.

from centos-wsl.

FlowerBirds avatar FlowerBirds commented on June 28, 2024

Create a file "/etc/wsl.conf" with content like this:

[boot] systemd=true

And reboot wsl.

It dost not work!

from centos-wsl.

FlowerBirds avatar FlowerBirds commented on June 28, 2024
mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
chmod +x /usr/bin/systemctl

from centos-wsl.

FlowerBirds avatar FlowerBirds commented on June 28, 2024

The problem is solved:

PS C:\Users\merit> wsl -l -v
  NAME                   STATE           VERSION
* alpine                 Stopped         2
  Rocky9                 Stopped         2
  docker-desktop-data    Stopped         2
  kali-linux             Stopped         2
  docker-desktop         Stopped         2
  ubuntu1804             Stopped         2
  CentOS7                Stopped         2
PS C:\Users\merit> wsl --version
WSL 版本: 1.1.3.0
内核版本: 5.15.90.1
WSLg 版本: 1.0.49
MSRDC 版本: 1.2.3770
Direct3D 版本: 1.608.2-61064218
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本: 10.0.22000.1574

update wsl2 ifself, then the file "/etc/wsl.conf" will take effect.

from centos-wsl.

mishamosher avatar mishamosher commented on June 28, 2024

For an alternative under WSL1, please see #7

from centos-wsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.