Comments (4)
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
then systemd is true:
top - 17:55:52 up 9 min, 1 user, load average: 0.05, 0.08, 0.03
Tasks: 28 total, 1 running, 27 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8137912 total, 6713224 free, 340476 used, 1084212 buff/cache
KiB Swap: 8388608 total, 8388608 free, 0 used. 7543432 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 43628 5372 3976 S 0.0 0.1 0:00.14 systemd
2 root 20 0 2296 1240 1136 S 0.0 0.0 0:00.00 init-systemd(Ce
5 root 20 0 2328 72 68 S 0.0 0.0 0:00.00 init
59 root 20 0 39076 5064 4752 S 0.0 0.1 0:00.06 systemd-journal
68 root 20 0 43748 3336 2796 S 0.0 0.0 0:00.09 systemd-udevd
126 root 20 0 21688 2784 2428 S 0.0 0.0 0:00.02 irqbalance
128 polkitd 20 0 612256 16464 9028 S 0.0 0.2 0:00.01 polkitd
130 dbus 20 0 58132 4164 3636 S 0.0 0.1 0:00.02 dbus-daemon
135 chrony 20 0 100512 2584 2264 S 0.0 0.0 0:00.01 chronyd
143 root 20 0 260760 3200 2736 S 0.0 0.0 0:00.00 gssproxy
146 root 20 0 26400 2812 2536 S 0.0 0.0 0:00.00 systemd-logind
170 root 20 0 126404 3056 2452 S 0.0 0.0 0:00.00 crond
171 root 20 0 110224 1784 1656 S 0.0 0.0 0:00.00 agetty
173 root 20 0 110224 2016 1884 S 0.0 0.0 0:00.00 agetty
183 rpc 20 0 69272 3264 2724 S 0.0 0.0 0:00.01 rpcbind
336 root 20 0 2300 104 0 S 0.0 0.0 0:00.00 SessionLeader
338 root 20 0 2316 108 0 S 0.0 0.0 0:00.01 Relay(340)
340 root 20 0 115564 3540 3100 S 0.0 0.0 0:00.21 bash
341 root 20 0 96584 4088 3476 S 0.0 0.1 0:00.00 login
355 root 20 0 115560 3240 2972 S 0.0 0.0 0:00.00 bash
477 root 20 0 574304 23976 10692 S 0.0 0.3 0:00.10 tuned
478 root 20 0 113016 7704 6668 S 0.0 0.1 0:00.00 sshd
482 root 20 0 218544 8380 4752 S 0.0 0.1 0:00.03 rsyslogd
from centos-wsl.
在wsl中执行systemctl相关命令报错 Failed to get D-Bus connection: Operation not permitted
备份systemctl
mv /usr/bin/systemctl /usr/bin/systemctl.bak
写入systemctl脚本
curl https://gitee.com/umico/docker-systemctl-replacement/raw/master/files/docker/systemctl.py > /usr/bin/systemctl
授予执行权限
chmod +x /usr/bin/systemctl
from centos-wsl.
@fzxfzx12345 升级wsl软件本身即可支持识别/etc/wsl.conf文件
from centos-wsl.
For additional info on using systemd
under WSL, 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
- How to manage services?such as systemctl HOT 6
- 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.