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
how to fix apt-get
开始部署,简单记录一下
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,这个也是教程没有提到的。
继续设置了ssl certificate
Untitled Post - 1
在虚拟环境运行已经成功了。但是链接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/
两个互相看一下。一开始我用的root账号,后来自己新建了一个账号就成功了。
登海外的服务器太慢了所以又装了个Mosh
装mosh的时候遇到locale的坑,这里记录一下:提示跟locale相关的错误,可以同时在服务器端和本地输入locale 命令看一下自己的locale list是不是UTF-8一套的。如果不是就需要用export命令修改一下。我修改了本地locale 为en_US.UTF-8,问题得到了解决。
命令locale 查看当前locale
export LANG=en_US.UTF-8export LC_ALL=en_US.UTF-8之后就可以mosh了