Odoo10 macOS开发环境配置
- 执行
xcode-select --install
,如果已安装请忽略 - 下载odoo10,执行
git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
- 安装pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
- 需要在
.bash_profile
或.zprofile
添加export PATH=~/Library/Python/2.7/bin:${PATH}
- pip镜像使用,执行
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
nginx 配置https
update: 2018-08-20
已支持泛域名申请:https://certbot.eff.org/
Trying to get a wildcard certificate? Please use the dropdown menus below to get instructions specific to your system, and read those instructions carefully.
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx
$ service nginx stop
$ certbot certonly --standalone --email your@email.com -d yourdomain.com
安装参考:[https://www.cnblogs.com/SzeCheng/p/8075799.html](https://www.cnblogs.com/SzeCheng/p/8075799.html)
证书三个月需要续签一次,使用crontab
每个月检查一次,自动续期
0 0 1 * * certbot renew -q --pre-hook "service nginx stop" --post-hook "service nginx start"
Ubuntu 14.04.5 安装 MySQL 5.7
安装
下载地址:https://dev.mysql.com/downloads/mysql/
wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar
MySQL+Koa从0开始
Mac + Google
- mac本地环境搭建:https://www.jianshu.com/p/fd3aae701db9
- 忘记密码:http://www.jb51.net/article/105668.htm
- 命名规范:https://github.com/zhblue/crud
- 数据库客户端:https://www.navicat.com/en/products
- 数据库字符集的选择:https://www.zhihu.com/question/38815156
- 字符类型的定义:http://www.runoob.com/mysql/mysql-data-types.html
- 使用koa2:http://koajs.com/
- 使用:koa-generator
- 修改项目:https://zhuanlan.zhihu.com/p/26216336
- 发现一个教程:https://chenshenhai.github.io/koa2-note/note/mysql/info.html
- koa2 文件上传:koa-multer
- 压力测试:https://github.com/mcollina/autocannon
Odoo10 macOS开发环境配置
- 执行
xcode-select --install
,如果已安装请忽略 - 下载odoo10,执行
git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
- 安装pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
- 需要在
.bash_profile
或.zprofile
添加export PATH=~/Library/Python/2.7/bin:${PATH}
- pip镜像使用,执行
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Odoo10 macOS开发环境配置
- 执行
xcode-select --install
,如果已安装请忽略 - 下载odoo10,执行
git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
- 安装pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
- 需要在
.bash_profile
或.zprofile
添加export PATH=~/Library/Python/2.7/bin:${PATH}
- pip镜像使用,执行
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
nginx 配置https
update: 2018-08-20
已支持泛域名申请:https://certbot.eff.org/
Trying to get a wildcard certificate? Please use the dropdown menus below to get instructions specific to your system, and read those instructions carefully.
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx
$ service nginx stop
$ certbot certonly --standalone --email your@email.com -d yourdomain.com
安装参考:[https://www.cnblogs.com/SzeCheng/p/8075799.html](https://www.cnblogs.com/SzeCheng/p/8075799.html)
证书三个月需要续签一次,使用crontab
每个月检查一次,自动续期
0 0 1 * * certbot renew -q --pre-hook "service nginx stop" --post-hook "service nginx start"
Copyright © 2013 Powered by MWeb, Theme used GitHub CSS. 豫ICP备16018939号-2