乐搭服务器部署文档
环境资源
云服务商 | 资源类型 | 模块说明 | CPU核数 | 内存容量 | 磁盘容量 | 外网IP需求 | 资源数量 | 带宽 | 操作系统 |
---|---|---|---|---|---|---|---|---|---|
腾讯云 | 云主机 | web模块 | 2 | 4G | 是 | 1 | 100M | Centos 7 | |
腾讯云 | redis | redis缓存 | 2 | 2G | 否 | 1 | redis 标准版 4.0 | ||
腾讯云 | mysql | 数据库 | 2 | 4G | 200G | 否 | 1 | mysql 5.7 |
部署需求
每台web机,安装Nginx+PHP5.3+mysql扩展
扩展名称 | 下载地址及编译注意事项 |
---|---|
Php-fpm.conf 配置 | pm = static pm.max_children = 150 |
乐搭后台API部署步骤:
git clone http://git.ids111.com/idreamsky/platform/frontend/idfe-leda-backend.git
更新官网dgc_comm数据库,执行leda.sql
cp app/Config/database.php.default app/Config/database.php 修改leda数据库的配置
cp app/Config/bootstrap.default.php app/Config/bootstrap.php 修改redis的配置
修改bootstrap.php 中的ftp server配置
chmod -R 777 app/tmp chmod -R 777 app/tmpView/themes
乐搭官网前端展示部署
git clone http://git.ids111.com/idreamsky/platform/frontend/idfe-leda-backend.git
nginx 的 server_name 是网站的域名 : leda.uu.cc等等
Nginx配置示例
ledaApi.conf
server {
listen 80;
server_name api.leda.uu.cc ;
root /data/wwwroot/leda/app/webroot;
index index.html index.htm index.php;
access_log /data/wwwlogs/leda.access.log;
error_log /data/wwwlogs/leda.error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ /(.ht|.git|.svn) {
deny all;
}
}
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。