下载地址:https://github.com/meiu/meiupic
上传压缩包至网站根目录,修改数据库信息,data/config.php
导入数据库meiupic.sql
后台地址: http://xxx.com/admin
账号:admin 密码:123456
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1&$args last; break; }}
MeiuPic升级为多用户相册系统了!可以轻松构建图虫、500px之类的图片社区。
install/install.sql
导入到数据库中。data/config.default.php
修改为 data/config.php
,并设置您的数据库相关配置:'database' => array( 'adapter' => 'pdomysql', 'host' => '127.0.0.1', 'port' => '3306', 'dbuser' => 'root', 'dbpass' => '', 'dbname' => 'meiupic', 'pconnect' => false, 'charset' => 'utf8', 'pre' => '' ),
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1&$args last;
break;
}
}
admin
密码:admin
体验吧。data/config.php
中的'base_url' => '/目录/', 'admin_base' => '/目录/admin/', 'public_url' => '/目录/public/', 'storage' => array( 'adapter' => 'file', //存储引擎,目前支持file,qiniu两种 'setting' => array( 'dirpath' => ROOT_DIR.'public/upfiles/', 'url_pre' => '/目录/public/upfiles/' ) ),
location / { if (!-e $request_filename) { rewrite ^/目录/(.*)$ /目录/index.php?q=$1&$args last; break; } }
可以通过修改配置文件直接支持七牛存储
'storage' => array( 'adapter' => 'qiniu', //存储引擎,目前支持file,qiniu两种 'setting' => array( 'bucket' => 'bucket名字', 'access_key' => '请填写七牛的access_key', 'secret_key' => '请填写七牛的secret_key', 'url_pre' => 'http://七牛bucket绑定的域名/', 'area' => 'z0' //这里输入七牛的区域 ) ),