报告 2 连长,powershell 飞弹在,centos8 最小安装中,工作正常。测试完毕,接受检阅。
powershell 飞弹在 centos8 中的工作参数,和 centos7 相同,为:
centos7,centos8,安装 powershell:
curl -o /etc/yum.repos.d/microsoft.repo
https://packages.microsoft.com/config/rhel/7/prod.repo sudo yum remove -y powershell #删除旧版
sudo yum install -y powershell
pwsh -c 'mkdir -p "$env:HOME/.config/powershell" '
pwsh -c 'Add-Content -Value "Set-PSReadlineOption -EditMode Windows" -LiteralPath $profile '
pwsh -c 'Add-Content -Value "`nSubsystem powershell /usr/bin/pwsh -sshs -NoLogo -NoProfile" -LiteralPath /etc/ssh/sshd_config '
一键安装,并炸掉鬼子尻之按钮:
curl -L
https://github.com/chuanjiao10/kasini3000_agent_linux/raw/master/centos7_install_powershell.bash | /usr/bin/bash
win,linux powershell 交流群分享 QQ 群号=183173532