Try to get into the shawdowsocks container created by docker.

Found this command:

docker exec -it bash

It didn’t work. And I found this:

https://mkyong.com/docker/docker-exec-bash-executable-file-not-found-in-path/

https://mkyong.com/docker/docker-exec-bash-executable-file-not-found-in-path/

Noticed not every image is using the bash shell.

Then tried this:

docker exec -it sh

It actually worked.

之前每次都要输入export locale=en-US.UTF-8

网上的教程也没有讲清楚zsh启动的配置文件到底在哪里。

我这次找到了。

在/etc/zshrc

在这个文件后面加入

export locale=en-US.UTF-8

就好了。

当然这个文件权限是readonly,要在vim前面加个sudo,这个也是教程没有提到的。

在虚拟环境运行已经成功了。但是链接nginx出现了502错误。找了这个教程。明天再来研究吧。

https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/

https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/

成功解决了这个问题,教程用的是:https://linoxide.com/linux-how-to/install-flask-python-ubuntu/https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

https://linoxide.com/linux-how-to/install-flask-python-ubuntu/

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

两个互相看一下。一开始我用的root账号,后来自己新建了一个账号就成功了。

0%