ubuntu如何看服务器上的文件夹大小写,windows - Windows 10 64上的Redis是否忽略日志文件路径中的大小写? - 堆栈内存溢出...

我将以下路径添加到redis配置文件:

/c/ProgramData/chocolatey/lib/redis-64/redis.windows.conf

# Specify the server verbosity level.

# This can be one of:

# debug (a lot of information, useful for development/testing)

# verbose (many rarely useful info, but not a mess like the debug level)

# notice (moderately verbose, what you want in production probably)

# warning (only very important / critical messages are logged)

loglevel notice

# Specify the log file name. Also 'stdout' can be used to force

# Redis to log on the standard output.

logfile "~\AppData\Local\Temp\redis_mailserver.log"

但是,当服务器尝试启动时,它将引发以下错误:

redis-server start "~\AppData\Local\redis\mailscript_redis.conf"

Could not open logfile ~\appdata\local\temp\redis_mailserver.log: The system cannot find the path specified.

验证位置是否存在:

MINGW64 ~/AppData/Local/redis

$ ls -alh ~/AppData/Local/ | grep Temp | sed -e 's/${USERNAME}/username/g'

drwxr-xr-x 1 username 197609 0 Aug 7 22:23 SquirrelTemp/

drwxr-xr-x 1 username 197609 0 Aug 10 10:24 Temp/

lrwxrwxrwx 1 username 197609 56 Nov 4 2018 Temporary Internet Files -> /c/Users/username/AppData/Local/Microsoft/Windows/INetCache/

我希望能够为该脚本的用户临时文件使用标准的常规位置,因为日志可能会很大,而且我真的不能期望用户每隔几周就会清理一次日志,所以我不知道该怎么办解决这个问题。

我还尝试了以下日志设置:

# Specify the log file name. Also 'stdout' can be used to force

# Redis to log on the standard output.

logfile "~/AppData/Local/Temp/redis_mailserver.log"

完全限定的路径(用户名已更改):

# Specify the log file name. Also 'stdout' can be used to force

# Redis to log on the standard output.

logfile "/c/Users/username/AppData/Local/Temp/redis_mailserver.log"

不引用字符串:

# Specify the log file name. Also 'stdout' can be used to force

# Redis to log on the standard output.

logfile /c/Users/username/AppData/Local/Temp/redis_mailserver.log

全部具有相同的结果。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值