Posts

Showing posts from June, 2011

mongodb mongod command line args

smorin$ ./mongod --dbpath ../../mongodata/ --help Allowed options: General options:   -h [ --help ]          show this usage information   --version              show version information   -f [ --config ] arg    configuration file specifying additional options   -v [ --verbose ]       be more verbose (include multiple times for more                          verbosity e.g. -vvvvv)   --quiet                quieter output   --port arg             specify port number   --bind_ip arg          comma separated list of ip addresses to listen on -                          all local ips by default   --logpath arg          log file to send write to instead of stdout - has to                          be a file, not directory   --logappend            append to logpath instead of over-writing   --pidfilepath arg      full path to pidfile (if not set, no pidfile is                          created)   --keyFile arg          private key for cluster authentication (only for          

mongodb mongo command line args

smorin$ ./bin/mongo --help MongoDB shell version: 1.8.1 usage: ./bin/mongo [options] [db address] [file names (ending in .js)] db address can be:   foo                   foo database on local machine   192.169.0.5/foo       foo database on 192.168.0.5 machine   192.169.0.5:9999/foo  foo database on 192.168.0.5 machine on port 9999 options:   --shell               run the shell after executing files   --nodb                don't connect to mongod on startup - no 'db address'                         arg expected   --quiet               be less chatty   --port arg            port to connect to   --host arg            server to connect to   --eval arg            evaluate javascript   -u [ --username ] arg username for authentication   -p [ --password ] arg password for authentication   -h [ --help ]         show this usage information   --version             show version information   --verbose             increase verbosity   --ipv6                enable IP

redis redis-cli command line options

There isn't official documentation for the command line arguments as of redis-cli.  If you type --help for the command line arguments you get the following smorin$ ./redis-2.2.4//src/redis-cli --help redis-cli 2.2.4 Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]   -h    Server hostname (default: 127.0.0.1)   -p        Server port (default: 6379)   -s      Server socket (overrides hostname and port)   -a    Password to use when connecting to the server   -r      Execute specified command N times   -n          Database number   -x               Read last argument from STDIN   -d   Multi-bulk delimiter in for raw formatting (default: \n)   --raw            Use raw formatting for replies (default when STDOUT is not a tty)   --help           Output this help and exit   --version        Output version and exit Examples:   cat /etc/passwd | redis-cli -x set mypasswd   redis-cli get mypasswd   redis-cli -r 100 lpush mylist x When no command is given, redis-c

redis redis-server command line options

There is only one argument for redis-server.  It's the path to the redis.conf file.  There is a example of this file in the redis src base.  There isn't a official documentation page as of 6/2011 $redis-server /path/to/redis/config/redis.conf