kodexplorer安裝

概述
個人覺得這個是最好的網盤系統,沒有之一,首先可以直接瀏覽伺服器中的檔案,其次還支援一些檔案直接開啟,web介面也做得很流暢,佔用的記憶體也很小,不需要依賴第三方資料庫,備份起來也很方便,而且是國產的,真的是國產良心
lnmp環境安裝
這個我是使用oneinstack解決的,最主要安裝了nginx,和php7.2,還有opcache,這樣就夠了
首先下載
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
之後解壓
tar -zxvf oneinstack-full.tar.gz
安裝
./install.sh
關於kodexplorer
首先下載
wget http://static.kodcloud.com/update/download/kodexplorer4.35.zip
解壓
unzip kodexplorer4.35.zip
之後移動到站點目錄
mv kodexplorer /data/wwwroot/
修改配置檔案
vim /usr/local/nginx/conf/nginx.conf
######################## default ############################ server { listen 80; server_name _; access_log /data/wwwlogs/access_nginx.log combined; root /data/wwwroot/kodexplorer; 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; } }
其實只要修改下面這行就好了
root /data/wwwroot/kodexplorer
修改kodexplorer許可權
chmod -R 777 /data/wwwroot/kodexplorer/
接著瀏覽器訪問伺服器ip就可以了
歡迎關注Bboysoul的部落格 ofollow,noindex">www.bboysoul.com
Have Fun