安裝phalcon開發(fā)工具

安裝phalcon 開發(fā)工具
先下載:https://github.com/phalcon/phalcon-devtools

成都創(chuàng)新互聯(lián)公司專業(yè)提供成都主機(jī)托管四川主機(jī)托管成都服務(wù)器托管四川服務(wù)器托管,支持按月付款!我們的承諾:貴族品質(zhì)、平民價格,機(jī)房位于中國電信/網(wǎng)通/移動機(jī)房,多線BGP機(jī)房服務(wù)有保障!

下載后,解壓縮。

.[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
當(dāng)報(bào)上面的錯時,是沒有添加路徑。
所以,php -v 會報(bào)錯。

通過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

現(xiàn)在再次回到,phalcon 開發(fā)工具的目錄:就正常了!
[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)

分享標(biāo)題:安裝phalcon開發(fā)工具
URL地址:http://muchs.cn/article2/iepcic.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、網(wǎng)站制作網(wǎng)站排名、電子商務(wù)、營銷型網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

商城網(wǎng)站建設(shè)