VPS侦探论坛

 找回密码
 注册
查看: 4657|回复: 5

树莓派php安装出问题了,

[复制链接]
发表于 2017-9-9 18:39:05 | 显示全部楼层 |阅读模式

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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-9 19:35:51 | 显示全部楼层


看一下是否有 /usr/include/arm-linux-gnueabihf/ 目录
有的话 ln -sf /usr/include/arm-linux-gnueabihf/curl /usr/include/ 再重新安装应该就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 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> [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 ?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-9-9 21:52:32 | 显示全部楼层



刚刚看了下 /usr/include/arm-linux-gnueabihf/这个目录是有的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 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[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)

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-9-10 14:36:37 | 显示全部楼层

回复 5# 的帖子


mysql无法启动按反馈必读提供mysql的日志
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 06:13 , Processed in 0.027694 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表