CentOS 下 beanstalkd & supervisord & laravel 后台队列环境安装配置
2015-03-27 17:55
681 查看
http://segmentfault.com/a/1190000000532561
4.2 以前的laravel 不支持 redis 队列。
安装 beanstalkd 和 supervisord:
下载: http://kr.github.io/beanstalkd/download.html
编辑配置文件:
最后面添加 :
添加 beanstalkd 服务:
输入:
添加服务
输入
下载你系统的*nux服务脚本: https://github.com/Supervisor/initscripts
PS:我centos 选了 : redhat-init-mingalevme
修改里面的配置文件路径 改成
启动服务:
查看/管理所有服务的状态:
done!
4.2 以前的laravel 不支持 redis 队列。
安装 beanstalkd 和 supervisord:
下载: http://kr.github.io/beanstalkd/download.html
tar zxvf beanstalkd-1.9.tar.gz cd beanstalkd-1.9 make mv beanstalkd /usr/local/bin/ yum -y install python-setuptools easy_install supervisor mkdir /etc/supervisor/ mkdir /etc/supervisor/conf.d echo_supervisord_conf > /etc/supervisor/supervisord.conf
编辑配置文件:
vi /etc/supervisor/supervisord.conf
最后面添加 :
[include] files = /etc/supervisor/conf.d/*.conf
添加 beanstalkd 服务:
vi etc/supervisor/conf.d/beanstalkd.conf
输入:
[program:beanstalkd] command = /usr/local/bin/beanstalkd -l 127.0.0.1 -c
添加服务
vi /etc/supervisor/conf.d/queue.conf
输入
[program:queue] user = nobody command = /usr/local/php5.4/bin/php /home/www/artisan queue:listen --timeout=180
下载你系统的*nux服务脚本: https://github.com/Supervisor/initscripts
PS:我centos 选了 : redhat-init-mingalevme
修改里面的配置文件路径 改成
/etc/supervisor/supervisord.conf
启动服务:
service supervisord start
查看/管理所有服务的状态:
supervisorctl -c /etc/supervisor/supervisord.conf
done!
相关文章推荐
- centos 安装amp 运行环境+配置虚拟地址
- 1.4 CentOS7 配置AMP环境之安装准备
- centos shell基础 alias 变量单引号 双引号 history 错误重定向 2>&1 jobs 环境变量 .bash_history source配置文件 nohup & 后台运行 cut,sort,wc ,uniq ,tee ,tr ,split, paste cat> 2.txt <<EOF 通配符 glob模式 发邮件命令mail 2015-4-8 第十二节课
- CentOS安装Go语言编译环境&配置LiteIDE
- 手把手教你在centos下编译安装配置高性能web服务器环境nginx+php(fast-cgi)+mysql
- CentOS环境Nagios的安装与配置
- systemtap安装&内核调试环境配置
- CentOS — 配置网卡、FTP、安装AMP
- centos软件安装和环境配置
- CentOS环境cacti的安装与配置
- CentOS6.3安装JDK和环境配置
- CentOS 5.5环境下安装配置Varnish
- CentOS6.3安装JDK和环境配置
- 在CentOS中安装gcc配置c语言开发环境(转)
- CentOS自动安装LAMP及环境简易配置
- CentOS环境Nagios的安装与配置
- CentOS 5.5环境下安装配置Varnish
- 安装,配置:在域环境下安装Microsoft Message Queue(支持公共队列)
- Archlinux下wordpress本地安装 &&Archlinux下lampp环境配置..
- CentOS 5.2,Linux 2.6+ 内核 ,Apache+MySQL+PHP 安装及基本配置过程记录 && 将apache安装为系统服务