Supervisor的安装

yum install python-setuptoolseasy_install supervisor如果easy_install不好使就从官方下载,然后通过python安装tar zxf supervisor-3.1.3.tar.gzcd supervisorpython setup.py install成功安装后可以登陆python控制台输入import supervisor 查看是否能成功加载。生成配置文件(supervisord.conf):echo_supervisord_conf > /etc/supervisord.conf 启动:supervisord -c /e...

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...

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...