Giter Club home page Giter Club logo

docker-httpsqs's Introduction

docker-httpsqs

Build Status

Docker for httpsqs. Detail: http://code.google.com/p/httpsqs

Author: Zhang Yan (http://blog.s135.com), E-mail: [email protected]
This is free software, and you are welcome to modify and redistribute it under the New BSD License

-l <ip_addr>  interface to listen on, default is 0.0.0.0
-p <num>      TCP port number to listen on (default: 1218)
-x <path>     database directory (example: /opt/httpsqs/data)
-t <second>   keep-alive timeout for an http request (default: 60)
-s <second>   the interval to sync updated contents to the disk (default: 5)
-c <num>      the maximum number of non-leaf nodes to be cached (default: 1024)
-m <size>     database memory cache size in MB (default: 100)
-i <file>     save PID in <file> (default: /tmp/httpsqs.pid)
-a <auth>     the auth password to access httpsqs (example: mypass123)
-d            run as a daemon
-h            print this help and exit

Use command "killall httpsqs", "pkill httpsqs" and "kill `cat /tmp/httpsqs.pid`" to stop httpsqs.
Please note that don't use the command "pkill -9 httpsqs" and "kill -9 PID of httpsqs"!

Please visit "http://code.google.com/p/httpsqs" for more help information.

Manual for docker-httpsqs

Pull the docker

docker pull ety001/httpsqs

Config

To set the docker environment to add params for httpsqs.

-l <ip_addr>  -- HTTPSQS_PARAM_L
-p <num>      -- HTTPSQS_PARAM_P
-x <path>     -- HTTPSQS_PARAM_X
-t <second>   -- HTTPSQS_PARAM_T
-s <second>   -- HTTPSQS_PARAM_S
-c <num>      -- HTTPSQS_PARAM_C
-m <size>     -- HTTPSQS_PARAM_M
-i <file>     -- HTTPSQS_PARAM_I
-a <auth>     -- HTTPSQS_PARAM_A

Examples

docker run -d -e HTTPSQS_PARAM_A=123456 -e HTTPSQS_PARAM_P=8888 -p 8888:8888 ety001/httpsqs

使用手册

拉取 docker

docker pull ety001/httpsqs

配置 httpsqs 参数

通过设置 docker 的环境变量来设置 httpsqs 的参数,具体对应关系如下

-l <ip_addr>  -- HTTPSQS_PARAM_L
-p <num>      -- HTTPSQS_PARAM_P
-x <path>     -- HTTPSQS_PARAM_X
-t <second>   -- HTTPSQS_PARAM_T
-s <second>   -- HTTPSQS_PARAM_S
-c <num>      -- HTTPSQS_PARAM_C
-m <size>     -- HTTPSQS_PARAM_M
-i <file>     -- HTTPSQS_PARAM_I
-a <auth>     -- HTTPSQS_PARAM_A

例子

docker run -d -e HTTPSQS_PARAM_A=123456 -e HTTPSQS_PARAM_P=8888 -p 8888:8888 ety001/httpsqs

My Blog | Donate | License: BSD-3

docker-httpsqs's People

Contributors

ety001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.