一、切换盘符:
-- 由C盘切换到D盘
C:\Users\25584> d:
-- 直接跳转到D盘指定目录
C:\Users\25584> cd /d d:\Software
二、进入指定目录:
D:\> cd Software\redis2.8win32_simple
三、查看指定目录下所有的文件:
-- 当前目录
D:\Software\redis2.8win32_simple> dir ./b
-- 上一级目录
D:\Software\redis2.8win32_simple> dir ../b
-- 指定文件路径
D:\Software\redis2.8win32_simple> dir d:\Software\Xshell6/b
四、返回上一级目录:
D:\Software\redis2.8win32_simple> cd ..
五、执行当前目录下的文件:
-- 也可以不加.\
D:\Software\redis2.8win32_simple> .\redis-server.exe .\redis.windows.conf
[17828] 11 Jun 15:05:37.648 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.19 (00000000/0) 32 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 17828
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[17828] 11 Jun 15:05:37.651 # Server started, Redis version 2.8.19
[17828] 11 Jun 15:05:37.653 * DB loaded from disk: 0.000 seconds
[17828] 11 Jun 15:05:37.654 * The server is now ready to accept connections on port 6379
...
六、终止正在运行的命令
键盘:ctrl + c
七、清屏
键盘输入:cls
八、查看当前所在路径:
d:\Software\redis2.8win32_simple> chdir
d:\Software\redis2.8win32_simple

733

被折叠的 条评论
为什么被折叠?



