我使用PHP访问旧机器上的数据并输出它们.
腻子显示:
??????????????????
?NONE.
??????????????????
Run Code Online (Sandbox Code Playgroud)
它是一种奇怪的格式,试图以更干净的方式显示数据
PHP echo-ed chrome显示:
??????
?NONE. ?
??????
Run Code Online (Sandbox Code Playgroud)
我试过了:
$Str1 = str_replace("?","",$Str1);
Run Code Online (Sandbox Code Playgroud)
但它并没有过滤掉它们.输出已经是8.
有谁知道如何过滤掉这些东西?也许确定什么是PHP?
有大量用于连接到 Redis“服务器”但不连接到 Redis“集群”的示例和资源。
我目前拥有的是:
const redis = require("redis");
const client = redis.createClient({
port : 6379, // replace with your port
host : '10.0.0.100', // replace with your hostanme or IP address
password : 'Notforyou', // replace with your password
// optional, if using SSL
// use `fs.readFile[Sync]` or another method to bring these values in
tls : {
key : stringValueOfKeyFile,
cert : stringValueOfCertFile,
ca : [ stringValueOfCaCertFile ]
}
});
Run Code Online (Sandbox Code Playgroud)
但这是针对单个 Redis 服务器而不是集群。我将如何连接到我的集群?