摘要:
前不久才发现切换用户的时候, su 和 su - 效果是不同的。。。 记录一下, 大概就是这样子: su 后面不加用户是默认切到 root: 相当于: su root 但是: su root 和 su - root 是不一样的 su root 是不改变当前变量,即只获取这个用户的执行权限,但环境变量 阅读全文
摘要:
提一个问题: What is the meaning of {id:.+} in a Spring MVC requestmapping handler method? 写法可能很少见,但真遇到了,还真不一定能解释得了。 比如: @GetMapping("xxx-service/v1/files/{ 阅读全文
摘要:
报错如下: error: You have not concluded your merge (MERGE_HEAD exists). hint: Please, commit your changes before merging. fatal: Exiting because of unfini 阅读全文
摘要:
echo "get key" | redis-cli -h 127.0.0.1 -p 6379 -a '123456' -n 5 > /tmp/redis_data.log 因为在命令行输入了密码,会报一个警告:redis using a password on the command line 但 阅读全文