Comments (6)
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.
Create a file "/etc/wsl.conf" with content like this:
[boot]
systemd=true
And reboot wsl.
from centos-wsl.
Create a file "/etc/wsl.conf" with content like this:
[boot] systemd=true
And reboot wsl.
It dost not work!
from centos-wsl.
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.
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.
For an alternative under WSL1, please see #7
from centos-wsl.
Related Issues (20)
- CentOS6 Install Fails HOT 2
- How to create Two CentOS? HOT 2
- Hi, question is there will be a CentOS WSL 2 Version HOT 1
- CentOS Stream 9 on WSL1: error on importing (any) GPG key HOT 4
- the /etc/wsl.conf can not work , how do i fix it HOT 3
- Launches into root account - would like to launch into un-elevated user profile HOT 1
- Issue Installing MariaDB on CentOS7 WSL: Failed to get D-Bus connection: Operation not permitted HOT 4
- F&Q HOT 3
- Build scripts and CI/CD configuration HOT 2
- Failed to change default user HOT 1
- Kernel does not support multicast on CentOS7 HOT 1
- systemctl & lsof HOT 1
- Would you like to add a wsl.conf in /etc to start systemd?
- CentOS on WSL1 can not resolve DNS HOT 1
- Not allowing new terminals without launching with --exec argument HOT 2
- How to uninstall? HOT 2
- cannot run without internet or via WI-FI HOT 2
- cannot start a program using systemctl HOT 3
- Where is the rootfs directory in centos? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from centos-wsl.