烘焙蛋糕php配置控制台配置文件

发布于 2024-10-07 02:08:28 字数 594 浏览 1 评论 0原文

我刚刚安装了 CakePHP,而且我对 Mac、Shell 和终端还很陌生。 Cakephp 现在运行正确,正如我的教程(入门-Cakephp-从新手到专业人士)所述,我现在正在尝试配置控制台配置文件来运行 Bake(我也在 MAMP 上)。< br> 我在终端中输入:

vi .profile  

然后我插入了一个别名:

alias cake="/Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/htdocs/luca/cake/cake/console/cake.php"

如果我现在尝试$蛋糕烘焙,我会收到消息:

-bash: /Applications/MAMP/bin/php5.3/bin/php: Permission denied

出了什么问题?

谢谢
Luca

P.SI 看到很少有其他教程用于通过导出路径来编辑 .profile ..有什么区别以及它是如何工作的?

i've just installed CakePHP and I'm pretty new with Mac,Shells and Terminal..
Cakephp is now running correctly and as stated by my tutorial (Beginning-Cakephp-from novice to professional) i'm now trying to configure console profile to run Bake (i'm on MAMP also).
I typed in the Terminal:

vi .profile  

then I inserted an alias:

alias cake="/Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/htdocs/luca/cake/cake/console/cake.php"

If I go trying for $ cake bake now i receive the message:

-bash: /Applications/MAMP/bin/php5.3/bin/php: Permission denied

what's wrong?

thanks
Luca

P.S I saw few other tutorial that used to edit .profile with exporting a path..what's the difference and how does it works?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原谅过去的我 2024-10-14 02:08:28

如果我导航到 mydir/cake/console,然后运行命令,我实际上可以烘焙

$ ./cake bake

I can bake actually if I navigate to mydir/cake/console, and then run the command

$ ./cake bake
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文