Advertisement
Guest User

Untitled

a guest
Nov 1st, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. http {
  2. #gzip on;
  3. listen 80;
  4.  
  5. upstream backend {
  6. drizzle_server 127.0.0.1:3306 dbname=test1
  7. password=Secret123 user=root protocol=mysql;
  8. }
  9.  
  10. server {
  11. listen 80;
  12. server_name localhost;
  13.  
  14. location /f{
  15. drizzle_pass backend;
  16. drizzle_module_header off;
  17. drizzle_query "select * from cats"; #$query_string;
  18. rds_json on;
  19. }
  20. }
  21. }
  22.  
  23. wget https://openresty.org/download/drizzle7-2011.07.21.tar.gz
  24. tar xzvf drizzle7-2011.07.21.tar.gz
  25. cd drizzle7-2011.07.21/
  26. ./configure --without-server
  27. make libdrizzle-1.0
  28. make install-libdrizzle-1.0
  29. cd ..
  30. git clone https://github.com/openresty/drizzle-nginx-module.git
  31. git clone https://github.com/openresty/rds-json-nginx-module.git
  32. wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz
  33. tar zxvf openresty-1.11.2.1.tar.gz
  34. cd openresty-1.11.2.1
  35.  
  36. ./configure
  37. --with-pcre=../pcre-$PCREVER
  38. --with-zlib=../zlib-$ZLIBVER
  39. --with-sha1=/usr/include/openssl
  40. --with-md5=/usr/include/openssl
  41. --with-http_stub_status_module
  42. --with-http_secure_link_module
  43. --with-luajit
  44. --with-pcre-jit
  45. --with-http_auth_request_module
  46. --with-http_addition_module
  47. --with-http_gunzip_module
  48. --with-http_image_filter_module
  49. --with-http_dav_module
  50. --with-http_flv_module
  51. --with-http_gzip_static_module
  52. --with-http_realip_module
  53. --with-http_stub_status_module
  54. --with-http_ssl_module
  55. --with-http_sub_module
  56. --with-http_xslt_module
  57. --with-ipv6
  58. --add-module=..rds-json-nginx-module
  59. --add-module=..drizzle-nginx-module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement