【API管理系统showdoc部署】+【CentOS-5.10 YUM 方式安装NGINX+PHP】
来源:互联网 发布:优酷下载器 mac 编辑:程序博客网 时间:2024/05/29 08:06
杂乱不堪的API文档,word、excel、pdf,迫切想找一款API管理工具,最终找到了showdoc(https://github.com/star7th/showdoc),基于php,对于我这个javaer来说略显困难。在一番折腾后终于搞定。
1、安装nginx
yum install nginx
2、安装php
yum remove httpd* php*yum install yum-priorities -yrpm -Uvh http://mirrors.opencas.cn/epel/epel-release-latest-5.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpmyum --enablerepo=remi install php php-fpmyum --enablerepo=remi install php-gd php-mysql php-mbstring php-xml php-mcrypt
3、配置nginx
vi /etc/nginx/nginx.conf
user nginx;worker_processes 2;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;events { worker_connections 1024;}http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; gzip on; gzip_http_version 1.0; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; gzip_min_length 1024; gzip_comp_level 3; gzip_types application/javascript text/css image/gif image/jpeg image/png; include /etc/nginx/conf.d/*.conf;server {listen 8000;server_name www.域名.com;root /mnt/www;index index.html index.htm index.shtml index.php;location / {if (!-e $request_filename) {rewrite ^(.*)$ /index.php?s=$1 last;break;}}location ~ .php {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;set $path_info "";set $real_script_name $fastcgi_script_name;if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {set $real_script_name $1;set $path_info $2;}fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;fastcgi_param SCRIPT_NAME $real_script_name;fastcgi_param PATH_INFO $path_info;}location ~ /\.ht {deny all;}}}
4、配置php-fpm
vi /etc/php-fpm.d/www.conf
user = nginxgroup = nginx
5、配置php
chown -R nginx:nginx /var/lib/php/session
6、下载https://github.com/star7th/showdoc源码,上传到/mnt/www内
chmod 777 /mnt/www/showdoc-master/Application/Runtime/
/etc/init.d/php-fpm restart8、启动nginx
/etc/init.d/nginx restart
0 0
- 【API管理系统showdoc部署】+【CentOS-5.10 YUM 方式安装NGINX+PHP】
- (yum方式)CentOS 6.4安装SVN版本管理系统
- CentOS 7下 yum方式安装Nginx
- centos yum安装 nginx +php+fastcgi
- Centos yum 安装nginx+php+mysql
- centos yum安装nginx php mysql
- centos yum安装nginx
- CentOS yum 安装 nginx
- Centos yum 安装Nginx
- CentOS yum安装nginx
- centos系统yum安装apache+php+mysql
- centos系统yum安装apache+php+mysql
- CentOS 6.5 系统 LAMP(Apache+MySQL+PHP+nginx+memcache) Yum安装步骤
- CentOS上yum安装nginx+mysql+php+php-fastcgi
- Centos Nginx+PHP+PHP-FPM安装使用YUM
- 转帖:Centos yum 安装nginx+PHP-FPM+eAccelerator+mysql
- CentOS-5.1 yum安装Nginx + PHP-FPM + MySQL笔记
- CentOS 6.2 yum安装配置lnmp服务器(Nginx+PHP+MySQL)
- 机器视觉开源代码集合
- Java基础——Java重点基础之IO流(二)
- 最小生成树prim(普里姆)算法
- 浅谈JS中的原型链
- 代理模式
- 【API管理系统showdoc部署】+【CentOS-5.10 YUM 方式安装NGINX+PHP】
- listview计算高度是的奇异问题
- HDU 5228 ZCC loves straight flush
- Hadoop1.1.2集群安装(Vmware+CenterOS6.5.X64)
- [Unity3D学习]Unity代码热更新解决方案测试结果总结
- CVPR 2013 录用论文
- eclipse中Android模拟器,DDMS看不到设备的解决及有时无打印Log
- JavaScript绑定事件的方法[3种]
- 【Java|Android】时间日期工具