text 在ubuntu VPS上烧瓶

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在ubuntu VPS上烧瓶相关的知识,希望对你有一定的参考价值。

#set up digital ocean
#https://www.youtube.com/watch?v=kDRRtPO0YPA&t=654s

#gninx 
ect/nginx/sites-enabled 
nano flask_settings
update to new porrt
ect/ngins/sites-available
do same update

#restart nginx
/etc/init.d/nginx restart

ssh in
move in folder
sudo apt-get update
sudo apt-get install python-pip nginx  OR apt install python3-pip nginx
pip or pip3 install keras tensorflow h5py six numpy
#make sure the 
#virutal env assign python 3 if you need it
virtualenv -p python3 ENVNAME
source ENVNAME/bin/activate
python --version
#check what is running on which port 
netstat -lp #for open to recieve and 
# to kill process use the following and those are back ticks. 
kill `sudo lsof -t -i:8000`  
apt install python3-pip
pip install flask gunicorn
pip3 install install keras tensorflow h5py six numpy
#launch gunicorn and make sure the port if set to 5000
gunicorn APPFILENAME:app

numpy, scipy, h5py, keras-applications, keras-preprocessing, keras, protobuf, markdown, grpcio, werkzeug, tensorboard, termcolor, astor, gast, absl-py, tensorflow
# configure nginx

JUST TAKE NOTES NEXT TIEM YOU DO IT>>

virual env with python3
pip install gunicorn flask

以上是关于text 在ubuntu VPS上烧瓶的主要内容,如果未能解决你的问题,请参考以下文章

text 新的ubuntu单nginx网站烧瓶设置

使用 pyaudio 在 linux/ubuntu 上运行烧瓶应用程序时出现 ALSA 错误

在 Ubuntu 14.04 VPS (Digital Ocean) 上部署 Flask 应用程序的问题

Spring Boot Actuator 应用程序无法在 Ubuntu VPS 上启动

无法与远程用户连接到MySQL(托管在Ubuntu VPS上)

VPS上ubuntu16.10系统如何安装图形界面