安装phalcon开发工具-创新互联

安装phalcon 开发工具
先下载:https://github.com/phalcon/phalcon-devtools

创新互联公司专注于企业成都全网营销、网站重做改版、南岸网站定制设计、自适应品牌网站建设、html5商城建设、集团公司官网建设、外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为南岸等各大城市提供网站开发制作服务。

下载后,解压缩。

.[root@localhost web]# cd phalcon-devtools-3.2.12
[root@localhost phalcon-devtools-3.2.12]# phalcon.sh

Phalcon Developer Tools Installer

Make sure phalcon.sh is in the same dir as phalcon.php
and that you are running this with sudo or as root.

Installing Devtools...
Working dir is: /web/phalcon-devtools-3.2.12
Generating symlink...

Done. Phalcon Developer Tools installed!
Thank you for using Phalcon Developer Tools!
We hope that Phalcon Developer Tools helps to make your life easier.

In case of problems: https://github.com/phalcon/phalcon-devtools/issues
and: https://forum.phalconphp.com

To start using Phalcon Developer Tools you need to run 'source /root/.bash_profile'
/web/phalcon-devtools-3.2.12/phalcon.sh: line 150: php: command not found

[root@localhost phalcon-devtools-3.2.12]# php -v
bash: php: command not found
当报上面的错时,是没有添加路径。
所以,php -v 会报错。

通过phpinfo()查看到:php目录在:/usr/local/php/etc/php.ini
cd /usr/local/php
里面的bin目录。
将 /usr/local/php/bin目录添加到PATH中
修改:
cd ~
我这里的 ~ 即是 /root目录。你要注意用自己的。
vim .bash_profile
添加一句。
export PATH=$PATH:/usr/local/php/bin
保存之后。
source /root/.bash_profile

[root@localhost ~]# source /root/.bash_profile
[root@localhost ~]# php -v
PHP 7.2.4 (cli) (built: Apr 24 2018 22:31:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies

现在再次回到,phalcon 开发工具的目录:就正常了!
[root@localhost phalcon-devtools-3.2.12]# phalcon.sh

Phalcon DevTools (3.2.12)

Available commands:
info (alias of: i)
commands (alias of: list, enumerate)
controller (alias of: create-controller)
module (alias of: create-module)
model (alias of: create-model)
all-models (alias of: create-all-models)
project (alias of: create-project)
scaffold (alias of: create-scaffold)
migration (alias of: create-migration)
webtools (alias of: create-webtools)
serve (alias of: server)
console (alias of: shell, psysh)

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

本文题目:安装phalcon开发工具-创新互联
本文网址:https://www.cdcxhl.com/article20/ccspjo.html

成都网站建设公司_创新互联,为您提供关键词优化营销型网站建设品牌网站制作Google网站设计动态网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都app开发公司