我已经安装了phpbrew及其依赖项,但是我在使用以下命令测试fpm时遇到了问题:
phpbrew switch 5.4.38
sudo phpbrew fpm start
Did you mean 'app'? [Y/n] n
Command fpm not found. available commands are: help, zsh, bash, meta, compile, archive, github:build-topics, app, init, known, install, list, use, switch, each, config, info, env, extension, variants, path, cd, download, clean, update, ctags, list-ini, self-update, remove, purge, off, switch-off
Command: command not found很明显,我在某个地方出了错,但却找不出原因。我可以确认它在那里
cd ~/.phpbrew/php/php-5.4.38/sbin
ls
php-fpm安装命令:
phpbrew install 5.4.38 +fpm +mysql;信息:
版本PHP-5.4.38
常数PHP前缀:/home/数据力学/..phpbrew/ PHP / PHP -5.4.38 PHP二进制文件: /home/datamechanics/.phpbrew/php/php-5.4.38/bin/php默认包含路径:.:PHP包含路径:.:
一般信息
phpinfo()
PHP Version => 5.4.38
System => Linux dmdell02 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64
Build Date => Mar 10 2016 15:29:28
Configure Command => './configure' '--prefix=/home/datamechanics/.phpbrew/php/php-5.4.38' '--with-config-file-path=/home/datamechanics/.phpbrew/php/php-5.4.38/etc' '--with-config-file-scan-dir=/home/datamechanics/.phpbrew/php/php-5.4.38/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /home/datamechanics/.phpbrew/php/php-5.4.38/etc
Loaded Configuration File => /home/datamechanics/.phpbrew/php/php-5.4.38/etc/php.ini
Scan this dir for additional .ini files => /home/datamechanics/.phpbrew/php/php-5.4.38/var/db
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,NTS
PHP Extension Build => API20100525,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
DTrace Support => disabled
Registered PHP Streams => compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Extensions
Core, date, ereg, libxml, pcre, zlib, dom, SPL, session, standard, Reflection, mysqlnd, SimpleXML, Phar, mysqli, tokenizer, xml, xmlreader, xmlwriter, xsl, mysql
Database Extensions
mysqlnd
mysqli
mysql发布于 2017-09-08 00:39:33
完成所有这些尝试使用OSX作为一个开发服务器。
现在使用PHPStorm和纯VirtualBox Ubuntu服务器安装。个人PHPStorm及其功能的价格是惊人的。社区支持也是。
尝试过Vagrant,但是它的废话以及它对DNS和端口转发的支持并不是远程主机的正确表示--我们希望尽可能多地在模拟服务器或真实的服务器上进行测试?
因此,解决方案是查看Windows和OSX无法提供行业view服务器配置,并安装一个以Linux为服务器的虚拟机。
现在我使用PHPStorm在共享目录上使用VM编辑,使用Chrome中的Zero配置工具书签来调试PHP。
这变成了一个完美的开发安装在OSX笔记本电脑(我的主要目标),但可以在任何地方使用,因为所有的GIT基础。
很乐意提供提示,但我考虑了这个问题。
https://stackoverflow.com/questions/35921572
复制相似问题