芒果爱吃胡萝卜 - local
type: channel
link: http://blog.mangolovecarrot.net/tag/local/
items: 解决 /etc/init.d/php-fpm-73 no such file or directory 问题

解决 /etc/init.d/php-fpm-73 no such file or directory 问题
type: item
date: 2021-04-29T13:27:00+08:00
description: 问题宝塔面板提示/etc/init.d/php-fpm-73 no such file or directory解决没有咱就创建一个完事。sudo vi /etc/init.d/php-fpm-73复制以下内容#! /bin/sh # Comments to support chkconfig on CentOS # chkconfig: 2345 65 37 # set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="php-fpm daemon" NAME=php-fpm DAEMON=/usr/local/php/sbin/$NAME CONFIGFILE=/usr/local/php/etc/php-fpm.conf PIDFILE=/usr/local/php/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 d_start() { $DAEMON -y $CONFIGFILE || echo -n " already running" } d_stop() { kill -QUIT `cat $PIDFILE` || echo -n " not running" } d_reload() { kill -HUP `cat $PIDFILE` || echo -n " can't reload" } case "$1" in start) echo -n "Starting $DESC is success" d_start echo "." ;; stop) echo -n "Stopping $DESC is success" d_stop echo "." ;; reload) echo -n "Reloading $DESC configuration..." d_reload echo "reloaded." ;; restart) echo -n "Restarting $DESC is success" d_stop sleep 1 d_start echo "." ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac 给权限sudo chmod 777 /etc/init.d/php-fpm-73完