我使用Google脚本从与regex匹配的列中提取值,但我似乎无法让regex变量使用if语句。当我将变量设置为字符串时,运行函数和返回响应没有问题,但是它不能使用regex,我正在试图解决这个问题:
这是我的剧本:
function extractBranded() {
var sheet = SpreadsheetApp.getActiveSheet();
var data = sheet.getDataRange().getValues();
for (var i = 0; i < data.length; i++) {
var keywords = /ip
我尝试了从Firefox获得的所有故障排除,但都失败了,但我仍然得到了相同的错误:
The following error was encountered while trying to retrieve the URL: http://vodlocker.com/wv420ypnzarv
Connection to host failed.
The system returned: (110) Connection timed out
The remote host or network may be down. Please try the request again.
我可以用我
在OCP 4.3上,从仪表板“复制登录命令”生成的oc登录命令
oc login --token=asdfghjk... --server=https://api.xxx.com:6443
在以下方面失败:
error: dial tcp: lookup api.xxx.com on 192.168.0.1:53: no such host - verify you have provided the correct host and port and that the server is currently running.
当我将集群的公共ip替换为主机名时,它可以工作。
oc login
我有一个奇怪的情况,其中一个服务名称,假设docker swarm中的'myservice‘与我的网络中的一个实际主机共享该名称。有时'myservice‘的解析会发现主机IP地址失败,因为它与我正在运行的任何东西都没有关系。有没有办法以一种方式给'myservice‘,迫使docker用它自己的服务来解决它?这是“tasks.myservice”还是更好的?Docker swarm CE 17.09是正在使用的版本