第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

使用 mac m1 命令“supervisorctl restart”失敗并返回退出代碼

使用 mac m1 命令“supervisorctl restart”失敗并返回退出代碼

Go
回首憶惘然 2022-11-28 14:36:09
我在 mac m1、docker、gulp 上運(yùn)行。我的第一個(gè)錯(cuò)誤是找不到命令 ld,但我在這里修復(fù)了它。如何解決 running gcc failed exist status 1 in mac m1?之后它導(dǎo)致我出現(xiàn)這個(gè)錯(cuò)誤。這是完整的錯(cuò)誤:[17:09:04] 'restart-supervisor' errored after 1.04 s[17:14:45] '<anonymous>' errored after 220 ms[17:14:45] Error in plugin "gulp-shell"Message:    Command `supervisorctl restart projectname` failed with exit code 7[17:14:45] 'restart-supervisor' errored after 838 ms我做了很多研究:我試過(guò)這樣做,但找不到命令。https://github.com/Supervisor/supervisor/issues/121這也是。 https://github.com/Supervisor/supervisor/issues/1223。我什至把我的形象改成arm64v8/golang:1.17-alpine3.14這是我的 gulpfile.js:var gulp = require("gulp");var shell = require('gulp-shell');gulp.task("build-binary", shell.task('go build'));gulp.task("restart-supervisor", gulp.series("build-binary", shell.task('supervisorctl restart projectname')))gulp.task('watch', function() {    gulp.watch([                "*.go",                 "*.mod",                 "*.sum",                 "**/*.go",                 "**/*.mod",                "**/*.sum"                ],                 {interval: 1000, usePolling: true},                gulp.series('build-binary', 'restart-supervisor'    ));});gulp.task('default', gulp.series('watch'));這是我當(dāng)前的 dockerfile:FROM arm64v8/golang:1.17-alpine3.14RUN apk update && apk add gcc make git libc-dev binutils-gold# Install dependenciesRUN apk add --update tzdata \    --no-cache ca-certificates git wget \    nodejs npm \    g++ \    supervisor \    && update-ca-certificates \    && npm install -g gulp gulp-shellCOPY ops/api/local/supervisor /etcENV PATH $PATH:/go/binWORKDIR /go/src/github.com/projectname/src/api在我的 docker-compose.yaml 我有這個(gè):entrypoint:  [    "sh",    "-c",    "npm install gulp gulp-shell && supervisord -c /etc/supervisord.conf && gulp"  ]vim /etc/supervisord.conf:    #!/bin/sh[unix_http_server]    file=/tmp/supervisor.sock    username=admin    password=revproxy    但說(shuō)真的,這個(gè) mac m1 有什么問(wèn)題。我試過(guò)在 rosetta 和非 rosetta 版本 2 中這樣做。如果我的問(wèn)題標(biāo)題有誤,請(qǐng)糾正我,我也不確定我的錯(cuò)誤。
查看完整描述

1 回答

?
不負(fù)相思意

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超10個(gè)贊

我通過(guò)添加#!/bin/sh和解決了問(wèn)題startsecs=0,沒(méi)有顯示錯(cuò)誤,但下一個(gè)問(wèn)題是 API 沒(méi)有運(yùn)行。



查看完整回答
反對(duì) 回復(fù) 2022-11-28
  • 1 回答
  • 0 關(guān)注
  • 171 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)