我正在尝试从localhost:8080重定向到端口80,以便在使用我自己的计算机的浏览器进行测试时可以连接到VM上的数据库,并且在终端中键入了以下内容:
'UserInput1 is the number of arrays needed
'xDim(i) and yDim(i) are two arrays whose length is equal to UserInput1
'each value in the xDim and yDim arrays represents the X or Y dimension of the
'new array to be created
'i want to create new arrays W1, W2, ...Wn, but using the code W & i() does
'not work
For i = 1 to UserInput1
Dim W & i() As Double
ReDim W & i(xDim(i), yDim(i))
Next i
,然后echo " rdr pass inet proto tcp from any to any port 8080 -> 127.0.0.1 port 80 " | sudo pfctl -ef -
看到我的规则已加载。
然后我在浏览器上尝试了localhost:80 / wp-admin,页面挂起。我还尝试将锚点添加到pf.anchors文件夹中,如此处所示,没有骰子。
正在做什么?