gpt4 book ai didi

visual-studio-code - 如何在 Centos 7 中运行/启动 VsCode

转载 作者:行者123 更新时间:2023-12-04 19:31:07 24 4
gpt4 key购买 nike

我已经安装了 vscode 上运行的远程服务器上(这意味着我必须使用 ssh) Centos 7 . 的版本vscode 1.54.3 .
当我运行 code ,该行被执行,但 vscode 不启动。当我尝试 /usr/share/code/code我收到一个错误

:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/share/code/chrome-sandbox is owned by root and has mode 4755.


我已经尝试使用解决它
cd /usr/share/code/
sudo chown root:root chrome-sandbox
sudo chmod 4755 chrome-sandbox
/usr/share/code/code --no-sandbox
但它不起作用。
我哪里做错了?

最佳答案

什么对我有用

  • 安装后重启主机
  • 更新 vscode:sudo yum update code
  • 更改目录:cd /usr/share/code
  • 运行:sudo chown root:root chrome-sandbox
  • 运行:sudo chmod 4755 chrome-sandbox
  • 启动vscode:code .
  • 关于visual-studio-code - 如何在 Centos 7 中运行/启动 VsCode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66816019/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com