Each time I try to use mosh, it asks me to export LANG settings
To fix it, I have set ~/.zshrc file.
I have added alias command into it.
Setting up another Mosh for my another server: lol.o0o.lol
follow the instructions showing on the website of mosh:
mosh.org
MAC osx 永久设置zsh的locale为en-US.UTF-8
之前每次都要输入export locale=en-US.UTF-8
网上的教程也没有讲清楚zsh启动的配置文件到底在哪里。
我这次找到了。
在/etc/zshrc
在这个文件后面加入
export locale=en-US.UTF-8
就好了。
当然这个文件权限是readonly,要在vim前面加个sudo,这个也是教程没有提到的。
Untitled Post - 1
在虚拟环境运行已经成功了。但是链接nginx出现了502错误。
找了这个教程。明天再来研究吧。
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
两个互相看一下。
一开始我用的root账号,后来自己新建了一个账号就成功了。
登海外的服务器太慢了所以又装了个Mosh
装mosh的时候遇到locale的坑,这里记录一下:
提示跟locale相关的错误,可以同时在服务器端和本地输入locale 命令看一下自己的locale list是不是UTF-8一套的。
如果不是就需要用export命令修改一下。
我修改了本地locale 为en_US.UTF-8,问题得到了解决。
命令
locale 查看当前locale
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
之后就可以mosh了