6.15 JLL--实习日志--SetupNewWorkSpace on cloud9
来源:互联网 发布:台湾经济 知乎 编辑:程序博客网 时间:2024/05/21 18:37
On Cloud9 IDE:
Set RSA in cloud9 and github setting before setup.
*cloud9 has already done the install
**may need to modify accordingly
1. use Django template in cloud9, create a new work space, init with Github repository:
手动pull repository 下来, 这边需要一开始的时候就指定Github repository ,也可以在后面创建!!!这边需要注意的,gitHub clone的时候需要使用 git@github.com:LeonGhibli/horizon.git
的方式,另外一种是https 的方式
Update apt source: 更新环境
sudo apt-get update
Install git: 安装git 方式
sudo apt-get install git
!warning: git-daemon: unable to open supervise/ok: file does not exist
- Checkout a new branch from major branch and start your working**
git checkout -b YOUR_BRANCH_NAME
- Install mysql:**
错误版本 sudo apt-get install mysql
参考版本
ubunta下安装mysql的步骤
sudo apt-get install mysql-serversudo mysql_secure_installation
报错: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111)
装完以后重新起mysql 服务: sudo service mysql restart
- Set root password for mysql:
mysqladmin -u root password Admin12#
- Install python-dev*:
sudo apt-get install python-dev
python-dev这个是什么鬼?
Install uwsgi
sudo pip install uwsgi
Install nginx*
sudo apt-get install nginx
Link horizon_nginx config 软连接
sudo ln -s /home/ubuntu/workspace/horizon/horizon_nginx.conf /etc/nginx/sites-enabled/
如果没有对应home/ubuntu/workspace/horizon/horizon_nginx.conf或者是位置发生错误,他会自动在/etc/nginx/sites-enabled/ 位置上建立一个空的horizon_nginx.conf ,
创建一个空的horizon_nginx.conf ,并且把
nano命令行+’-s’
ln: failed to access ‘–s’: No such file or directory
ln: failed to access ‘/home/Ubuntu/workspace/horizon/horizon_nginx.conf’: No such file or directory
- Install middlewares
sudo pip install Django-axessudo pip install Django-bootstrap-toolkit!
sudo pip install mysql-python
sudo pip install django-excel
sudo pip install pyexcel-xls
sudo pip install pyexcel-xlsx
sudo pip install python-pptx
Restart your workspace
点击 右上角 memory—cpu—RestartedRestart service if necessary
sudo service mysql restart
sudo service nginx restart
Pull up Horizon service:
uwsgi –socket horizon.sock –module horizon.wsgi –chmod-socket=777- Modify mysql character setting to support utf-8:*
在第三步结束后,删除原来的数据库,创建一个新的数据库,和之前同名的数据库,只是类型变成了utf-8
修改数据库默认的类型,改称utf-8
修改mysql 数据库的名称
https://www.centos.bz/2013/09/quick-and-secure-modify-mysql-name/
!!!!!!!!!!————–!!!!!!——–删除migration 文件下下面所有的记录!!—————-!!再三确认以后再操作一下步骤!!血泪教训啊!否则你你也会回来加这一行的!!!
!!!!!!!!!!———–>!!!!! 一定要删啊!!!!—————
- python manage.py makemigrations
python manage.py migrate
Create super user
python manage.py createsuperuser (leon )Login Django-admin
Login Horizon
- Checkout a new branch from major branch and start your working**
git checkout –b YOUR_BRANCH_NAME - Add your work to be tracked in local branch**
git add . - Commit your work in local**
git commit –m “20170302” - Push your work to github
git push Team review and merge code
Change SSH for you own account!
- 6.15 JLL--实习日志--SetupNewWorkSpace on cloud9
- 5.3 JLL 实习日志
- 5.5 JLL 实习日志
- 5.9 JLL实习日志
- 5.27 JLL--实习日志--
- 6.5 JLL--实习日志
- 6.16-6.19 JLL--实习日志--
- 5.26 JLL--实习日志--Primary_Image+total_setting
- 7.14-7.21 JLL实习日志-DropDownBox Upgrade
- 8.29-8.30 JLL实习日志-validate deprecated
- 9.1-9. JLL实习日志-未完结
- 5.4 JLL 实习日志 –form 表单问题
- 5.11 JLL实习日志-实现download功能实现
- 5.10 JLL实习日志-实现upload 功能实现
- 5.12 JLL实习日志-实现download功能实现
- 5.12 JLL实习日志-实现Anjular Js 功能实现
- 5.19 JLL--实习日志--view_availability前端和后端
- 5.22 JLL--实习日志--Js--to be contining
- HTTP 性能/压力测试
- Android7.0华为Mate9开发获取WiFi列表失败
- Oracle简介及其安装
- TensorFlow个人学习(回归模型)
- 缺少“;”(在标识符“PVOID64”的前面)
- 6.15 JLL--实习日志--SetupNewWorkSpace on cloud9
- 关于单量预测和动态定价的一些思考
- 栈的建立
- Sublime Text3 支持Less
- ....
- 学习笔记——JAVA设计模式<15>命令模式
- 8.将字符串中所有下标为奇数位置上的字母转换为大写
- Java判断坐标点是否在片区内—代码备份
- 欢迎使用CSDN-markdown编辑器