nv-sess-simple-cli
v1.4.10
Published
nv-sess-simple-cli ================== - simplified js-rewrited-version of nv-sess-easy(originally write in C) , less supported session-count, less performance ,but MORE supported data-type just for test - creat a websocket server project, based on uWebso
Downloads
16
Readme
nv-sess-simple-cli
- simplified js-rewrited-version of nv-sess-easy(originally write in C) , less supported session-count, less performance ,but MORE supported data-type just for test
- creat a websocket server project, based on uWebsocket
- including browser-side code AND server-side code
install
- npm install nv-sess-simple-cli -g
usage
tcp
Usage: nv_sess_simple_cli_tcp [options]
Options:
-h, --help print some suggested tcp parameters
ipc (fast)
Usage: nv_sess_simple_cli_creat_ipc_srv [options]
Options:
-f, --force_reinstall_deps install dependancies without check node_modules ances, default false
-s, --sessid srv name hint prefix,default "ipc"
-w, --workdir workdir,default "./"
-m, --max_client_cnt max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
-h, --help usage
nonssl (fast)
Usage: nv_sess_simple_cli_creat_nonssl_srv [options]
Options:
-f, --force_reinstall_deps install dependancies without check node_modules ances, default false
-s, --sessid srv name hint prefix,default "nonssl"
-w, --workdir workdir,default "./"
-m, --max_client_cnt max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
-a, --ip listen ip addr, default None ""
-p, --port listen port, default 38443
-h, --help usage
ssl (slow)
Usage: nv_sess_simple_cli_creat_ssl_srv [options]
Options:
-f, --force_reinstall_deps install dependancies without check node_modules ances, default false
-s, --sessid srv name hint prefix,default "ssl"
-w, --workdir workdir,default "./"
-m, --max_client_cnt max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
-a, --ip listen ip addr, default None ""
-p, --port listen port, default 38443
-k, --key_file_name ssl_certificate_key
-c, --cert_file_name ssl_certificate
-P, --passphrase ssl passphrase, default None ""
-h, --help usage
nv-sess-simple-cli#
using nginx (slow slow)
Usage: nv_sess_simple_cli_creat_nginx_srv [options]
Options:
-f, --force_reinstall_deps install dependancies without check node_modules ances, default false
-u, --ngx_uname nginx username, default "www-data"
-s, --sessid srv name hint prefix,default "ngx"
-w, --workdir workdir,default "./"
-m, --max_client_cnt max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
-a, --ip listen ip addr, default None ""
-p, --port listen port, default 38443
-S, --secure enable ssl
-k, --key_file_name ssl_certificate_key
-c, --cert_file_name ssl_certificate
-h, --help usage
example
creat 4 server
mkdir nvsess
cd nvsess
mkdir ipc
cd ipc
nv_sess_simple_cli_creat_ipc_srv -s ipc
cd ../
mkdir nonssl
cd nonssl
nv_sess_simple_cli_creat_nonssl_srv -s nossl -a 192.168.1.145 -p 38443
cd ../
mkdir ipc
cd ipc
nv_sess_simple_cli_creat_ipc_srv -s ipc
cd ../
mkdir ssl
cd ssl
nv_sess_simple_cli_creat_ssl_srv -s ssl -a 192.168.1.145 -p 48443 -k ../../cert/ssl.key -c ../../cert/ssl.crt
cd ../
mkdir ngx
cd ngx
nv_sess_simple_cli_creat_nginx_srv -s ngx -a 192.168.1.145 -p 58443 -S -k ../../cert/ssl.key -c ../../cert/ssl.crt
cd ../
one of them:
#ls -l nonssl/
total 180
-rw-r--r-- 1 root root 121 May 9 13:03 buf-handle.js
-rw-r--r-- 1 root root 71774 May 9 13:03 bwapi.js
-rw-r--r-- 1 root root 1322 May 9 13:03 cfg.js
-rw-r--r-- 1 root root 54986 May 9 13:03 eng.js
-rw-r--r-- 1 root root 557 May 9 13:03 env-worker.js
-rw-r--r-- 1 root root 95 May 9 13:03 front-access.json
-rwxrwxrwx 1 root root 136 May 9 13:03 pm2_start.sh
-rw-r--r-- 1 root root 141 May 9 13:03 publish-auth.js
-rwxrwxrwx 1 root root 162 May 9 13:03 repl_start.sh
-rw-r--r-- 1 root root 467 May 9 13:03 req-handle.js
-rw-r--r-- 1 root root 2530 May 9 13:03 srv.js
-rwxrwxrwx 1 root root 133 May 9 13:03 start.sh
-rw-r--r-- 1 root root 343 May 9 13:03 tm-worker.js
-rw-r--r-- 1 root root 146 May 9 13:03 upgrade-auth.js
-rw-r--r-- 1 root root 420 May 9 13:03 val-handle.js
LICENSE
- ISC