安装phpredisadmin linux nginx服务器下
2024-10-14 14:03:22
1.下载phpRedisAdmin:git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
2.cd phpRedisAdmin git submodule init git submodule init
3.mv phpRedisAdmin/ /home/www
4.composer install
5.cp includes/config.sample.inc.php includes/config.inc.php
6.vim config.inc.php更改其中配置
7.ngnix.conf下include一个单独文件写上如下代码然后重启:
server {
listen 8080;
server_name localhost;
root /home/www/phpRedisAdmin;
access_log /home/log/phpRedisAdmin.access.log main; fastcgi_connect_timeout 300;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k; location / {
index index.html index.htm index.php;
concat on;
concat_max_files 20;
concat_delimiter "\n";
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
log_not_found on;
}
location ~ .*\.(js|css)?$
{
expires 12h;
access_log off;
log_not_found on;
}
location = /favicon.ico {
log_not_found off;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location /nginx-status {
stub_status on;
access_log off;
}
}
最新文章
- Hadoop学习笔记—20.网站日志分析项目案例(二)数据清洗
- vue.js在windows本地下搭建环境和创建项目
- ionic 跨页面传值的几种方法
- 1 UML基础
- 开发Yii2过滤器并通过behaviors()行为调用
- [linux] Nginx编译安装错误error: the HTTP rewrite module requires the PCRE library
- 38、FragmentStatePagerAdapter分页
- 如何利用 _ViewStart.cshtml对页面添加代码?
- Java中接口与实例化
- maven3.0
- jquery 学习笔记 (2)--write less,do more
- android 设计模式学习
- c/c++浮点数在内存中存储方式
- fiddler抓取https请求
- css3 伸缩百分比的调整
- linux下使用gcc编译运行C/C++程序
- Maven + SSM + Kaptcha 实现用户登录时验证码的获取(问题:302 Found)
- 2018-2019-2 网络对抗技术 20165227 Exp5 MSF基础应用
- 【前端】三个bug
- mybatis中的mapper接口文件以及selectByExample类的实例函数详解