-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows编译的程序启动不了, Permission denied #125
Comments
没懂, windows编译的业务服务, 部署在docker里面? |
忘了补充: 所有一点疑问,这个是不是没有添加可执行权限成功还是其他问题 |
进容器, 手功能运行么? |
容器内tars_start.sh文件还没显示出来,bin目录只有一个编译后的文件,文件没有x权限,需要手动chmod +x |
我感觉是你编译完以后, copy了文件之类的, 导致丢失可执行权限? 最好检查你上传之前的操作, 看看哪一步丢失了可执行权限 |
golang项目用windows交叉编译的Linux可执行文件,直接tar打包上传,没有copy操作,到了Linux下解压之后,默认是没有可执行权限的。tarsnode是docker方式运行的,服务是运行在tarsnode容器里面的 |
版本
问题
/usr/local/app/tars/tarsnode/data/k.Admin/bin/tars_start.sh: line 6: /usr/local/app/tars/tarsnode/data/k.Admin/bin/Admin: Permission denied
后面我用docker换过3.0.7, 3.0.6都不成功,mac编译的能成功
The text was updated successfully, but these errors were encountered: