laocc/esp-install

There is no license information available for the latest version (1.0.6) of this package.

esp install code

1.0.6 2021-09-26 15:54 UTC

This package is auto-updated.

Last update: 2024-05-26 21:21:38 UTC


README

  • 建议Nginx
  • PHP7以上

Nginx服务器配置:

common/nginx中有已经设置好的示例,但是需要在/usr/local/nginx/conf/nginx.conf中增加引用:

include {PATH}/common/nginx/host/*.conf

此目录下几个文件中的路径需要改为自己实际的真实绝对路径。 在php.conffastcgi_pass要注意与实际sock路径是否相同

文件权限

### /runtime目录

  • 此目录为框架运行时产生的临时文件保存位置;
  • 此目录需有读写权限,除此之外的所有目录不必要有写入权限;
  • 应该将此目录放入.gitignore中;

开发环境与生产环境

  • /runtime/中添加debug.lock,当前为开发环境
  • 多负载架构时,需要在主节点/runtime/中添加master.lock

运行时需要写入的配置文件

  • 框架及程序的配置文件原则上建议放在/common/config中(默认值)
  • 若程序有存在运行时写入配置,可以在/common中新建一个目录,并赋于此目录写入权限,当然也可以放在其他目录,比如/runtime中;

操作示例

chown -R www:www *
chmod -R 540 *
chmod -R 740 runtime
chmod -R 740 common/custom

假设custom为程序运行中需要写入的目录