如何保存退出redis.conf?
How to save and exit redis.conf?
我正在 digtalocean 中的 Ubuntu 16.04 上安装和配置 Redis,遵循本教程 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04。
当它进入'Save and close the file when you are finished.'
我不知道关闭和保存它的正确命令是什么。
我尝试使用 :wq ,但没有用。
有朋友能给我点建议吗?
如果您使用 vim 打开文件,您可以在正常模式下使用此选项保存并退出:
:wq
:x
:ZZ (notice that it is in uppercase)
:x
and :ZZ
写入当前文件,如果修改,退出
要强制只在末尾添加一个!
:
:x!
:wq!
教程告诉你用到用nano
。如果你遵循它,你的屏幕应该看起来或多或少像这样:
按Ctrl+x
(^X
)到"Exit",然后按明显的键保存您的工作:
我正在 digtalocean 中的 Ubuntu 16.04 上安装和配置 Redis,遵循本教程 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04。
当它进入'Save and close the file when you are finished.' 我不知道关闭和保存它的正确命令是什么。 我尝试使用 :wq ,但没有用。
有朋友能给我点建议吗?
如果您使用 vim 打开文件,您可以在正常模式下使用此选项保存并退出:
:wq
:x
:ZZ (notice that it is in uppercase)
:x
and :ZZ
写入当前文件,如果修改,退出
要强制只在末尾添加一个!
:
:x!
:wq!
教程告诉你用到用nano
。如果你遵循它,你的屏幕应该看起来或多或少像这样:
按Ctrl+x
(^X
)到"Exit",然后按明显的键保存您的工作: