centos安装docker 并安装 splash

安装yum install docker-io 启动dockerservice docker start 开机启动chkconfig docker on 结束!!!!but:ps aux|grep docker 未发现任何进程,虽然service doker start 显示OK并未报任何错,这不怪doker,官网说的很清楚Docker requires a 64-bit OS and version 3.10 or higher of the Linuxkernel.但猜测不是这个原因,程序都没启动起来。查看日志 /var/log/docker 发现如下错误。/usr/bin/dock...

在centos上无界面运行浏览器

安装python环境可跳过1)python环境, 检查python的版本,是否为2.7.x,如果不是,安装2.7.6。如果是centos 6.x,升级python2.6到python2.7,参考教程 http://ruiaylin.github.io/2014/12/12/python%20update/如果是centos 7.x,默认就是python2.7,不用升级如果是mac osx,可以使用virtualenv,安装python2.7安装浏览器环境 selenium依赖.(如果是mac环境,仅需安装firefox, 但确保版本是 firefox 36.0,使用最新的版本会报错)yu...

字体资源跨域配置

Nginxlocation ~* \.(eot|ttf|woff|svg|otf)$ { add_header Access-Control-Allow-Origin *或域名; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Control-Allow-Methods GET,POST,OPTIONS; } Apache<FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod...

Gitlab的安装备份与迁移

安装Install and configure the necessary dependencies 1. yum install curl openssh-server openssh-clients postfix cronie 2. service postfix start 3. chkconfig postfix on 4. lokkit -s http -s sshAdd the GitLab package server and install the package官方说明:curl -sShttps://packages.gitlab.com/install/re...

Composer certificate verify failed

save ca-bundle.crt to your local pathdouble click ca-bundler.crt to import itadd the two line to php.inicurl.cainfo=d:/download/ca-bundle.crt openssl.cafile=d:/download/ca-bundle.crt try to install composer-setup.exe agin.refer to:https://github.com/composer/composer/issues/2798

为什么你应该使用Repository

这仅仅是个翻译:原文来自 http://vegibit.com/laravel-repository-pattern/Repository 模式为了保持代码的整洁性和可读性,使用Repository Pattern 是非常有用的。事实上,我们也不必仅仅为了使用这个特别的设计模式去使用Laravel,然而在下面的场景下,我们将使用OOP的框架Laravel 去展示如何使用repositories 使我们的Controller层不再那么啰嗦、更加解耦和易读。下面让我们更深入的研究一下。不使用 repositories其实使用Repositories并不是必要的,在你的应用中你完全可以不使用这...

Linux分布式消息队列RocketMQ部署与监控--双Master

环境准备:CentOS_6.5_x64 IP: 192.168.0.249   dbTest249    Master1 IP: 192.168.0.251   webTest251   Master2 下载 alibaba-rocketmq 软件https://github.com/alibaba/RocketMQ/releases一、安装rocketmq# tar zxf alibaba-rocketmq-3.2.4-beta1.tar.gz -C /usr/local/ # cd /usr/local/ # ln -s /usr/local/alibaba-ro...