Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9268a5b5
Commit
9268a5b5
authored
Dec 01, 2011
by
antirez
Browse files
usage information updated to reflect the new way to pass options to Redis from the command line.
parent
27ccb94a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
9268a5b5
...
...
@@ -1856,8 +1856,16 @@ void version() {
}
void
usage
()
{
fprintf
(
stderr
,
"Usage: ./redis-server [/path/to/redis.conf]
\n
"
);
fprintf
(
stderr
,
"Usage: ./redis-server [/path/to/redis.conf]
[options]
\n
"
);
fprintf
(
stderr
,
" ./redis-server - (read config from stdin)
\n
"
);
fprintf
(
stderr
,
" ./redis-server -v or --version
\n
"
);
fprintf
(
stderr
,
" ./redis-server -h or --help
\n\n
"
);
fprintf
(
stderr
,
"Examples:
\n
"
);
fprintf
(
stderr
,
" ./redis-server (run the server with default conf)
\n
"
);
fprintf
(
stderr
,
" ./redis-server /etc/redis/6379.conf
\n
"
);
fprintf
(
stderr
,
" ./redis-server --port 7777
\n
"
);
fprintf
(
stderr
,
" ./redis-server --port 7777 --slaveof 127.0.0.1 8888
\n
"
);
fprintf
(
stderr
,
" ./redis-server /etc/myredis.conf --loglevel verbose
\n
"
);
exit
(
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment