背景:
阅读新闻
CentOS下SVN服务器测试版安装记录
[日期:2013-03-17] 来源:oschina.net 作者:曾建凯 [字体:]
看看版本,是不是成功
/usr/local/php-5.4.12/bin/php -v编辑php-fpm的配置
nano /usr/local/php-5.4.12/etc/php-fpm.conf [global] pid = /var/php-fpm/run/php-fpm.pid error_log = /var/php-fpm/log/php-fpm.log log_level = warning emergency_restart_threshold = 60 emergency_restart_interval = 60s process_control_timeout = 30 process.max = 20 rlimit_files = 1024 events.mechanism = epoll [www] user = www group = www listen = "/dev/shm/php-fpm.sock" pm = static pm.start_servers = 10 pm.max_children = 50 rlimit_files = 1024 chdir = /srv/www制作php-fpm启动脚本
cd /etc/init.d nano php-fpm #!/bin/bash # # Startup script for the PHP-FPM server. # # chkconfig: 345 85 15 # description: PHP is an HTML-embedded scripting language # processname: php-fpm # config: /usr/local/php/etc/php.ini # Source function library. . /etc/rc.d/init.d/functions PHP_PATH=/usr/local/php-5.4.12 DESC="php-fpm daemon" NAME=php-fpm # php-fpm路径 DAEMON=$PHP_PATH/sbin/$NAME # 配置文件路径 CONFIGFILE=$PHP_PATH/etc/php-fpm.conf # PID文件路径(在php-fpm.conf设置) PIDFILE=/var/php-fpm/run/php-fpm.pid SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 rh_start() { $DAEMON -y $CONFIGFILE || echo -n " already running" } rh_stop() { kill -QUIT `cat $PIDFILE` || echo -n " not running" } rh_reload() { kill -HUP `cat $PIDFILE` || echo -n " can't reload" } case "$1" in start) echo -n "Starting $DESC: $NAME" rh_start echo "." ;; stop) echo -n "Stopping $DESC: $NAME" rh_stop echo "." ;; reload) echo -n "Reloading $DESC configuration..." rh_reload echo "reloaded." ;; restart) echo -n "Restarting $DESC: $NAME" rh_stop sleep 1 rh_start echo "." ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload}" >&2 exit 3 ;; esac exit 0 chmod +x php-fpm
Hadoop中DataNode与NameNode之间的心跳机制
相关资讯
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯