寒疆绿草 发表于 2017-9-9 18:39:05

树莓派php安装出问题了,

检查了一下没有/etc/init.d下没有 php-fpm文件复制进去了执行也不行

licess 发表于 2017-9-9 19:35:51

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

寒疆绿草 发表于 2017-9-9 21:44:04

谢谢回复,我手动安装了一次安装完成了,但是在执行/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>
-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 ?

寒疆绿草 发表于 2017-9-9 21:52:32

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

寒疆绿草 发表于 2017-9-10 00:47:11

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

pi@raspberrypi:~/lnmp1.4 $ journalctl -xe
-- mysql.service 单元已开始启动。
9月 10 00:31:29 raspberrypi mysql: Starting MySQL
9月 10 00:31:33 raspberrypi mysql: ....The server quit without updating PID file (/usr/local/mysql/var/raspberrypi.pid). ... failed!
9月 10 00:31:33 raspberrypi systemd: mysql.service: Control process exited, code=exited status=1
9月 10 00:31:33 raspberrypi systemd: 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: mysql.service: Unit entered failed state.
9月 10 00:31:33 raspberrypi systemd: mysql.service: Failed with result 'exit-code'.
9月 10 00:31:33 raspberrypi systemd: Reloading.
9月 10 00:31:33 raspberrypi systemd: apt-daily.timer: Adding 2h 12min 25.198399s random time.
9月 10 00:31:33 raspberrypi systemd: apt-daily-upgrade.timer: Adding 33min 12.206294s random time.
9月 10 00:32:12 raspberrypi su: pam_unix(su:session): session closed for user root
9月 10 00:37:56 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi/lnmp1.4 ; USER=root ; COMMAND=/bin/lnmp restart
9月 10 00:37:56 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by pi(uid=0)
9月 10 00:37:57 raspberrypi systemd: 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: Starting MySQL
9月 10 00:38:00 raspberrypi mysql: ...The server quit without updating PID file (/usr/local/mysql/var/raspberrypi.pid). ... failed!
9月 10 00:38:00 raspberrypi systemd: mysql.service: Control process exited, code=exited status=1
9月 10 00:38:00 raspberrypi systemd: 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: mysql.service: Unit entered failed state.
9月 10 00:38:00 raspberrypi systemd: mysql.service: Failed with result 'exit-code'.
9月 10 00:38:35 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
lines 1886-1925/1925 (END)

licess 发表于 2017-9-10 14:36:37

回复 5# 的帖子

mysql无法启动按反馈必读提供mysql的日志
页: [1]
查看完整版本: 树莓派php安装出问题了,