Centos7 关闭防火墙

CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下直接关闭防火墙systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动

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