zoukankan      html  css  js  c++  java
  • cakephp 中Console / Shell 有什么优点?

    Which is the advantage of using CakePHP Console / Shell for programmed tasks ?

    查看原文

    最近用到了cakephp中的shell,但是不知道为什么要用shell,所以到google了一下,找到了一份比较满意的答案,在这里记录下。

    Here are a few reasons that come to mind:

    • A shell isn't publicly accessible, where a url (generally) is
    • A shell doesn't hit your webserver
    • The shell dispatch process has less overhead
    • Shell output is easier to log error vs. output

    另: Some disadvantages of a web script I can think of are:

    • the execution time is limited by the webserver
    • the memory it can consume is limited by the webserver
    • the script URL has to be protected in order to get executed only when YOU want
    • obviously the webserver has to be up and running when you want to call your script
  • 相关阅读:
    LDAP+Jenkins
    LDAP+SASL+SVN
    Ubuntu下的LDAP服务搭建
    LDAP+Confluence
    LDAP+Nextcloud
    vim -d
    linux默认编辑器
    vim相关调优
    MySQL中的保留字
    RHEL7配置ip地址
  • 原文地址:https://www.cnblogs.com/wscrlhs/p/6094271.html
Copyright © 2011-2022 走看看