Walle-瓦力上线部署系统正确安装
2016-06-19 12:00
423 查看
一直在找自动化部署的系统,最好是php版本的,偶然的机会找到了Walle这个部署系统,于是静下心来学习一下
比较坑的是官方的文档和github上的文档都有问题,不清楚怎么安装,也许是版本滞后的问题,自己摸索了一下才正确安装了
github地址:https://github.com/meolu/walle-web
官方地址:http://www.huamanshu.com/walle.html
开始安装Walle
请到github网页上下载代码: https://github.com/meolu/walle-web
![](http://img.phpsong.com/wp-content/uploads/2016/02/2016051109155823348.png)
try_files $uri $uri/ /index.php$is_args$args;
}
不然提示
![](http://img.phpsong.com/wp-content/uploads/2016/02/2016021807541923622.png)
2)修改runtime文件的权限,打开的时候会提示错误
默认的用户名密码:admin/admin
QQ交流群:136351212
查看原文:http://www.phpsong.com/2166.html
比较坑的是官方的文档和github上的文档都有问题,不清楚怎么安装,也许是版本滞后的问题,自己摸索了一下才正确安装了
github地址:https://github.com/meolu/walle-web
官方地址:http://www.huamanshu.com/walle.html
开始安装Walle
代码检出
mkdir -p /data/www/walle-web && cd /data/www/walle-web # 新建目录 git clone git@github.com:meolu/walle-web.git . # 代码检出PS:代码检出的时候需要用名密码,可能是要设置github的账号,其他这一步就行下载diam,如果没有账号
请到github网页上下载代码: https://github.com/meolu/walle-web
![](http://img.phpsong.com/wp-content/uploads/2016/02/2016051109155823348.png)
设置mysql连接
vi config/web.php
'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=127.0.0.1;dbname=walle', # 新建数据库walle 'username' => 'root', # 连接的用户名 'password' => '123456', # 连接的密码 'charset' => 'utf8', ],
vi config/local.php
'db' => [ 'dsn' => 'mysql:host=127.0.0.1;dbname=walle', 'username' => 'root', 'password' => '123456',#此处需要设置连接mysql密码,默认为空 ],
安装composer,如果已安装跳过,我把下面的https修改成http,不然国内访问数据慢
curl -sS http://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer # PATH目录
安装vendor
cd walle-web composer install --prefer-dist --no-dev --optimize-autoloader -vvvv
初始化项目,这里跟官方显示的不一样
./yii migrate/up
最后配置服务器
这里讲提醒一下nginx的伪静态规则location / {try_files $uri $uri/ /index.php$is_args$args;
}
我安装之后有几个问题
1)php.ini要启用exec函数不然提示
![](http://img.phpsong.com/wp-content/uploads/2016/02/2016021807541923622.png)
2)修改runtime文件的权限,打开的时候会提示错误
默认的用户名密码:admin/admin
QQ交流群:136351212
查看原文:http://www.phpsong.com/2166.html
相关文章推荐
- unittest框架及自动化测试
- webrtc直播插入耳机无效
- dotnet core 开发体验之Routing
- Linux 命令 ——less命令
- [bzoj2117] [2010国家集训队]Crash的旅游计划
- IT软件开发常用英语词汇
- Mysql主从复制的一般步骤整理说明(异步复制)
- vim使用—实现程序的自动补齐(C语言)
- 软件工程
- 第12周 数据结构和算法 线性表-5 栈-栈完成进制转换及应用
- Delphi调用自身onchange事件,如提示缺少声明object时,不能调用,用此方法!
- 杭电2053S之Switch Game
- Centos7设置成和公司工作地方一样的192.168.9.xxx网段
- 【Dongle】【牛腩新闻发布系统】TextBox边框显示
- Service中通过main方法加载Spring连接数据库等操作
- [摘录]调动员工积极性的七个关键
- C++二级指针和二维数组
- 线程间协作的两种方式:wait、notify、notifyAll和Condition
- 重温3 Activity Intent 向下传递数据 向上传递数据
- android 学习之路