配置 打開 ufw 防火墻
apt-get install ufw
ufw allow 22
ufw allow 80
ufw allow 443
ufw default deny incoming
ufw default allow outgoing
ufw status verbose
ufw enable
安裝必備軟件
apt-get install git python3 python3-pip python3-setuptools supervisor mongodb redis-server zsh
安裝 oh-my-zsh 配置(方便你使用命令行的配置)
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
安裝 gunicorn
pip3 install gunicorn
服務(wù)器中文編碼問題
編輯下面的文件, 不要拼錯
nano /etc/environment
加入下面的內(nèi)容, 保存退出
LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"