博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
搭建个人/企业私有存储云盘-kodexplorer
阅读量:6852 次
发布时间:2019-06-26

本文共 1311 字,大约阅读时间需要 4 分钟。

环境配置:

nginx/1.14.0PHP 7.2.8 (cli) Debian 3.16.43-2+deb8u5192.168.1.124

nginx和php安装

参考:

获取可道云

root@centos-mysql01:# wget  http://static.kodcloud.com/update/download/kodexplorer4.37.ziproot@centos-mysql01:/usr/local/nginx/html# unzip kodexplorer4.37.zip    root@centos-mysql01:/usr/local/nginx/html# chmod -R 777 ../html/

配置nginx

server {listen 80;server_name _;access_log /data/wwwlogs/access_nginx.log combined;root /usr/local/nginx/html;index index.html index.htm index.php;#error_page 404 /404.html;#error_page 502 /502.html;location /nginx_status {  stub_status on;  access_log off;  allow 127.0.0.1;  deny all;}location ~ [^/]\.php(/|$) {  #fastcgi_pass remote_php_ip:9000;  fastcgi_pass unix:/dev/shm/php-cgi.sock;  fastcgi_index index.php;  include fastcgi.conf;}location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {  expires 30d;  access_log off;}location ~ .*\.(js|css)?$ {  expires 7d;  access_log off;}location ~ /\.ht {  deny all;}} include vhost/*.conf;}

启动访问测试

root@centos-mysql01:/usr/local/nginx/html# nginx  -t   nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok   nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successfulroot@centos-mysql01:/usr/local/nginx/html# nginx  -s reload

访问:192.168.1.124

转载至:

转载于:https://blog.51cto.com/9025736/2335068

你可能感兴趣的文章
Codeforces Round #363 Fix a Tree(树 拓扑排序)
查看>>
hihocoder1455 Rikka with Tree III(bitset 莫队 dfs序)
查看>>
SQL Server 2008中的MERGE(不仅仅是合并)
查看>>
啤酒与饮料算法
查看>>
xxx is not in the sudoers file.This incident will be reported.的解决方法
查看>>
Java实现冒泡排序、折半查找
查看>>
[C++] 引用
查看>>
Drupal7 Module chapter 1 (猪扒7的开发)第一章
查看>>
Django - admin管理工具
查看>>
获取本月天数 和 本月日期
查看>>
js高阶函数map和reduce
查看>>
vue渲染时对象里面的对象的属性提示undefined,但渲染成功
查看>>
贴一份用delphi修改注册表改网卡MAC地址的代码
查看>>
JS获取页面URL信息
查看>>
tomcat
查看>>
WebStorm 快键键
查看>>
Google code android 开源项目 集合
查看>>
tomcat 调优
查看>>
E - Triangle
查看>>
Web安全学习笔记(一)
查看>>