打印

树莓派php安装出问题了,

树莓派php安装出问题了,

检查了一下没有/etc/init.d下没有 php-fpm文件复制进去了执行也不行
附件: 您所在的用户组无法下载或查看附件

TOP

看一下是否有 /usr/include/arm-linux-gnueabihf/ 目录
有的话 ln -sf /usr/include/arm-linux-gnueabihf/curl /usr/include/ 再重新安装应该就可以了

TOP

谢谢回复,我手动安装了一次安装完成了,但是在执行/etc/init.d/php-fpm start时显示Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php-cgi <file> [args...]
  -a               Run interactively
  -b <address:port>|<port> Bind Path for external FASTCGI Server mode
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.
  -T <count>       Measure execution time of script repeated <count> times.
................................... failed

之后我又运行了/etc/init.d/php-fpm logrotate显示
Re-opening php-fpm log file warning, no pid file found - php-fpm is not running ?

TOP

刚刚看了下 /usr/include/arm-linux-gnueabihf/这个目录是有的

TOP

pi@raspberrypi:~/lnmp1.4 $ systemctl status mysql.service
● mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-09-10 00:38:00 CST; 51s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3987 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
   CGroup: /system.slice/mysql.service
           ├─ 572 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/var --pid-file=/usr/local/mysql/var/raspberrypi.pid
           └─1068 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/var/raspberrypi.err --open-files-limi

9月 10 00:37:57 raspberrypi systemd[1]: Starting LSB: start and stop MySQL...
9月 10 00:37:57 raspberrypi mysql[3987]: Starting MySQL
9月 10 00:38:00 raspberrypi mysql[3987]: ...The server quit without updating PID file (/usr/local/mysql/var/raspberrypi.pid). ... failed!
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Control process exited, code=exited status=1
9月 10 00:38:00 raspberrypi systemd[1]: Failed to start LSB: start and stop MySQL.
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Unit entered failed state.
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Failed with result 'exit-code'.

pi@raspberrypi:~/lnmp1.4 $ journalctl -xe
-- mysql.service 单元已开始启动。
9月 10 00:31:29 raspberrypi mysql[3280]: Starting MySQL
9月 10 00:31:33 raspberrypi mysql[3280]: ....The server quit without updating PID file (/usr/local/mysql/var/raspberrypi.pid). ... failed!
9月 10 00:31:33 raspberrypi systemd[1]: mysql.service: Control process exited, code=exited status=1
9月 10 00:31:33 raspberrypi systemd[1]: Failed to start LSB: start and stop MySQL.
-- Subject: mysql.service 单元已失败
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- mysql.service 单元已失败。
--
-- 结果为“failed”。
9月 10 00:31:33 raspberrypi systemd[1]: mysql.service: Unit entered failed state.
9月 10 00:31:33 raspberrypi systemd[1]: mysql.service: Failed with result 'exit-code'.
9月 10 00:31:33 raspberrypi systemd[1]: Reloading.
9月 10 00:31:33 raspberrypi systemd[1]: apt-daily.timer: Adding 2h 12min 25.198399s random time.
9月 10 00:31:33 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 33min 12.206294s random time.
9月 10 00:32:12 raspberrypi su[1386]: pam_unix(su:session): session closed for user root
9月 10 00:37:56 raspberrypi sudo[3928]:       pi : TTY=pts/0 ; PWD=/home/pi/lnmp1.4 ; USER=root ; COMMAND=/bin/lnmp restart
9月 10 00:37:56 raspberrypi sudo[3928]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
9月 10 00:37:57 raspberrypi systemd[1]: Starting LSB: start and stop MySQL...
-- Subject: mysql.service 单元已开始启动
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- mysql.service 单元已开始启动。
9月 10 00:37:57 raspberrypi mysql[3987]: Starting MySQL
9月 10 00:38:00 raspberrypi mysql[3987]: ...The server quit without updating PID file (/usr/local/mysql/var/raspberrypi.pid). ... failed!
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Control process exited, code=exited status=1
9月 10 00:38:00 raspberrypi systemd[1]: Failed to start LSB: start and stop MySQL.
-- Subject: mysql.service 单元已失败
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- mysql.service 单元已失败。
--
-- 结果为“failed”。
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Unit entered failed state.
9月 10 00:38:00 raspberrypi systemd[1]: mysql.service: Failed with result 'exit-code'.
9月 10 00:38:35 raspberrypi sudo[3928]: pam_unix(sudo:session): session closed for user root
lines 1886-1925/1925 (END)

TOP

回复 5# 的帖子

mysql无法启动按反馈必读提供mysql的日志

TOP