亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

錯誤: 安裝 php7.0-mysqlnd' 返回 100

錯誤: 安裝 php7.0-mysqlnd' 返回 100

PHP
三國紛爭 2022-09-17 15:33:05
我在運行PuPHPet盒子時遇到問題,PHP服務無法啟動,之后我收到以下錯誤:vagrant upError: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.0-mysqlnd' returned 100: Reading package lists...在此之后,php 服務無法啟動:==>  Reading state information...==>  The following NEW packages will be installed:==>    php7.0-mysql==>  0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.==>  Need to get 124 kB of archives.==>  After this operation, 486 kB of additional disk space will be used.==>  Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-mysql amd64 7.0.33-20+ubuntu16.04.1+deb.sury.org+1 [124 kB]==>  Fetched 124 kB in 0s (570 kB/s)==>  Selecting previously unselected package php7.0-mysql.(Reading database ... 54197 files and directories currently installed.)==>  Preparing to unpack .../php7.0-mysql_7.0.33-20+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...==>  Unpacking php7.0-mysql (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...==>  Processing triggers for php7.0-fpm (7.0.33-20+ubuntu16.04.1+deb.sury.org+1) ...==>  Job for php7.0-fpm.service failed because a timeout was exceeded. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.機器正在啟動,我可以ssh進入它,手動安裝php也失敗了。我正在Windows 10和Git Bash上使用虛擬盒子。我嘗試了所有可用的PHP版本(7.0,7.1,7.2),嘗試了幾次配置,銷毀了計算機,并在 PuPHPet.com 上完成了創建過程。有什么建議嗎?
查看完整描述

1 回答

?
暮色呼如

TA貢獻1853條經驗 獲得超9個贊

在過去的幾天里,我遇到了類似的問題。在進入盒子并運行后,我得到了這個日志:journalctl -u php7.0-fpm


Feb 14 09:53:47 vagrant systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...

Feb 14 09:53:47 vagrant update-alternatives[10343]: update-alternatives: error: alternative path /run/php/php7.0-fpm.sock doesn't exist

Feb 14 09:53:47 vagrant systemd[1]: php7.0-fpm.service: PID file /run/php/php7.0-fpm.pid not readable (yet?) after start-post: No such file or directory

Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Start-post operation timed out. Stopping.

Feb 14 09:55:17 vagrant systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.

Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Unit entered failed state.

Feb 14 09:55:17 vagrant systemd[1]: php7.0-fpm.service: Failed with result 'timeout'.

Feb 14 09:55:22 vagrant systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager.

事實證明,PID文件路徑是錯誤的。


您可以在參數.pp 中更新 PID 文件變量。文件路徑:$pid_filepuphpet/puppet/modules/puphpet/manifests/php/params.pp


更新此值以銷毀并運行為我修復了此問題。run/php/php7.0-fpm.pidvagrant up


puphpet 存儲庫中還有一個包含此更改的拉取請求:https://github.com/AOEpeople/puppet-puphpet/commit/e3b50ce72b922c2649ac82979b02edfd4e3b8c0a


查看完整回答
反對 回復 2022-09-17
  • 1 回答
  • 0 關注
  • 121 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號