注册 登录
n/website · 8 个月前 · 1557 次浏览
u/cs9u钻石钻石会员
n/websiteu/cs9u 钻石会员 · 8 个月前

https://rustix.me/ 的容器建一个网站不行哇?

https://rustix.me/ 的容器建一个网站不行哇? 有点玩不来。

4
52
登录后参与讨论。
最佳答案楼主采纳 · 回答者获得 20 声望
linying233338 个月前2 赞同

cs9u: 运行后提示 const { spawn } = require(‘child_process’); SyntaxError: Invalid or unexpected token at internalCompileFunction (node:internal/vm:128:18) at wrapSafe (node:internal/modules/cjs/loader:1279:20) at Module._compile (node:internal/m…

52 条回复

你在看其中一组对话 往上一层 查看全部回复
  1. taoye 青铜 7 个月前

    大佬 bash 也不能执行吗。。 想部署一个软件,好像做不到呀。。

    0
  2. linying23333 😇 钻石 2 YEARS 7 个月前

    干嘛不行... 你进去的交互式就是bash, 问题装不了什么软件. 很多目录都没权限读写, 要用得静态编译的纯二进制

    0
  3. taoye 青铜 7 个月前

    curl -X POST http://xxx -d 'curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash'
    然后提示:
    'bash'' 不是内部或外部命令,也不是可运行的程序
    或批处理文件

    .... 第一次用这种容器环境。。。

    0
  4. linying23333 😇 钻石 2 YEARS 7 个月前

    你的问题, 这明显是windows抛出的错误.
    windows不能用单引号抗内部转义, windows只支持双引号包裹命令.
    我用的git bash当然可以用单引号

    不会用给我去用控制台, 有对接网页控制台. 那个也可以敲命令进去

    0
  5. 继续这个对话 →