Python 结构的 PHP 替代品

发布于 2024-10-11 13:38:37 字数 1540 浏览 2 评论 0原文

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

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

发布评论

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

评论(5

許願樹丅啲祈禱 2024-10-18 13:38:37

唔?为什么这很重要? Fabric 只是 python 脚本。所以它与项目语言无关。您可以使用它在您使用 scp 的服务器上放置任何内容,也可以通过 ssh 编写您使用 bash 或 [在此处插入其他工具] 的任何内容的脚本。 Fabric 确实不是 Python 的 capistrano。它更类似于帽子和耙子的结合,尽管我仍然认为这是鸽子织物的能力。

我确实喜欢我们为您提供的项目的一站式配方位(从第一眼看上去),就像在织物中一样,除非您使用编织之类的东西,否则您将自己滚动。但面料的定制能力对我来说是一个优势,因为我到处都在使用它。

Hmm? Why does it matter? Fabric is just python scripting. So it's project language agnostic. You can use it put anything on a server you'd use scp for, as well as script anything via ssh you'd use bash or [insert other tool here] for. Fabric really isn't Python's capistrano. It's more akin to a combining of both cap and rake, though I still think that's pigeonholing fabric's ability.

I do like the one stop recipe bits that cap and (from first look) weploy gives you for projects, as in fabric unless you're leveraging something like woven, you'll be rolling your own. But the customization ability of fabric is a plus to me, as I'm all over the place in my uses for it.

情深已缘浅 2024-10-18 13:38:37

现在我们有 Deployer for PHP,用 php 实现,不需要特殊的 ext,安装就是下载一个deployer.phar,有流行框架的部署模板。
https://deployer.org/

Now we have Deployer for PHP, implemented in php, no special ext required, installation is downloading a deployer.phar, have deploy templates for popular frameworks.
https://deployer.org/

回忆凄美了谁 2024-10-18 13:38:37

Laravel(一个非常流行且相对年轻的框架)有 Envoy

Laravel (a very popular and relatively young framework) has Envoy.

ま昔日黯然 2024-10-18 13:38:37

如果您正在寻找构建工具(而不是部署),可以使用 Phing (http://phing.info/),它是 Java 的 Ant 的 PHP 等效工具。

不处理隧道(运行远程命令等),但确实可以很好地将部署分解为具有链式依赖关系的任务,并且 PHP 可以轻松地与 PHP 库交互。您可能会发现一些简单的 cap 或 fabfiles 用于实际部署,然后可以调用 Phing 脚本来处理部署后配置。

If you're looking for a build tool (as opposed to deployment), you can use Phing (http://phing.info/), a PHP equivalent of Java's Ant.

Doesn't handle the tunnelling (running remote commands etc.) but does do a nice job of breaking up your deployment into tasks with chained dependancies, and being PHP can interact with your PHP libraries easilly. You might find that some simple cap or fabfiles for the actual deployment, and could then call a Phing script to handle the post-deployment configuration.

天气好吗我好吗 2024-10-18 13:38:37

是的,您可以使用 mysqlnd_ms

mysqlnd 复制和负载平衡插件 (mysqlnd_ms )为所有使用 mysqlnd 的 PHP MySQL 扩展添加了易于使用的 MySQL 复制支持。

自 PHP 5.3.3 版本起,PHP 的 MySQL 本机驱动程序 (mysqlnd) 具有内部插件 C API。 C插件,例如复制和负载平衡插件,可以扩展mysqlnd的功能。

PHP 的 MySQL 本机驱动程序是一个 C 库,从 PHP 5.3.0 开始与 PHP 一起提供。它可作为 MySQL 客户端库 (libmysqlclient) 的直接替代品。使用 mysqlnd 有几个优点:不需要额外下载,因为它与 PHP 捆绑在一起,它遵循 PHP 许可证,在某些情况下内存消耗较低,并且它包含异步查询等新功能。

大多数情况下,像 mysqlnd_ms 这样的 Mysqlnd 插件从用户角度透明地运行。复制和负载平衡插件支持所有 PHP 应用程序和所有 MySQL PHP 扩展。它不会更改现有的 API。因此,它可以轻松地与现有的 PHP 应用程序一起使用。

Yes, you can use mysqlnd_ms

The mysqlnd replication and load balancing plugin (mysqlnd_ms) adds easy to use MySQL replication support to all PHP MySQL extensions that use mysqlnd.

As of version PHP 5.3.3 the MySQL native driver for PHP (mysqlnd) features an internal plugin C API. C plugins, such as the replication and load balancing plugin, can extend the functionality of mysqlnd.

The MySQL native driver for PHP is a C library that ships together with PHP as of PHP 5.3.0. It serves as a drop-in replacement for the MySQL Client Library (libmysqlclient). Using mysqlnd has several advantages: no extra downloads are required because it's bundled with PHP, it's under the PHP license, there is lower memory consumption in certain cases, and it contains new functionality such as asynchronous queries.

Mysqlnd plugins like mysqlnd_ms operate, for the most part, transparently from a user perspective. The replication and load balancing plugin supports all PHP applications, and all MySQL PHP extensions. It does not change existing APIs. Therefore, it can easily be used with existing PHP applications.

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