我有以下配置
from bs4 import BeautifulSoup as S
import requests
c = input('enter your coin')
url = f'https://coinmarketcap.com/currencies/{c}/'
headers = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
r = requests.get(url,headers=headers)
soup = S(r.content,'html.parser')
print(f'the price of {c} now is ')
x = soup.find(id="priceValue___11gHJ")
print(x)```
我假设 redis 正在保存两个文件,RDB 和 AOF,并且由于 aof-use-rdb-preamble yes
save 1 1
appendfsync everysec
appendonly yes
需要从 RDB 加载。
但是当服务器加载时,它从 AOF 加载:aof-use-rdb-preamble yes
我想将这两个文件都写入磁盘,但是当系统加载时,我想从 RDF 文件中加载。
知道为什么/如何吗?
谢谢