articles's People
articles's Issues
google cloud centos7 部署flask 服务
创建gcloud实例
配置登录
方法一 实例ssh登录
https://cloud.google.com/compute/docs/instances/connecting-to-instance#standardssh
在本地使用ssh-keygen后会输出生成的密匙文件地址,注意保存。
方法二 gcloud登录
https://cloud.google.com/compute/docs/gcloud-compute/?hl=zh_CN
安装wget yum
环境变量设置
打开文件 vi /etc/profile
在末端添加,退出 export PATH=$PATH:/usr/local/go/bin
立即生效 source /etc/profile
安装python3
参考 http://blog.csdn.net/miaoqiucheng/article/details/73322937
或者 https://www.cnblogs.com/waylon/p/6569196.html
或者 http://blog.csdn.net/you240meng/article/details/52234351
这几篇提到了一些安装问题,可以参考
安装pip(注意各种PATH)
一些问题
安装后,使用pip install 会出现PermissionError: [Errno 13] Permission denied,使用sudo pip install出现了sudo: pip3: command not found问题,使用以下链接中的命令解决了问题。
https://serverfault.com/questions/890403/linux-command-found-but-not-found-when-using-sudo/890407#890407
pip3 install --user vitrualenv 安装成功。
安装MySQL
参考 https://www.cnblogs.com/bigbrotherer/p/7241845.html
设置mysql字符集为utf8, 配置文件在/etc/my.cnf中,mysql --help | grep my.conf可查看cnf文件可能存在的目录
设置完成后重启mysql 服务 service mysql restart
可以在mysql中使用show variables like 'character%'查看字符集设置情况
显示如下
mysql> show variables like 'character%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
说明设置完成
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.