我在mac下工作,目前正在它上设置CentOS7.7,以运行apache/mysql配置以进行演示测试。我已将网络设置为“桥适配器”,但无法访问设置在CentOS7.7( info.php)上的mysql或其他设置(如VirtualMachine)。我进一步看了看,发现我需要编辑‘/etc/sysconfig/network/ifcfg-enp0s3’,并更改了以下细节:
"BOOTPROTO=" to a static address, but I am having hard time on setting the
"IPADDR=" (tried setting like 198.51.100.5 - random IP)
"PREFIX=" (probably 24 not sure)
"GATEWAY=" (set 198.51.100.1 also random)最有可能的就是这个问题。另外,我不得不评论一下
"NETMASK=" since from what I was able to see over the net it is replaced by 'GATEWAY'.CentoS 7.7上有网络,但我希望从mac连接到IP上的centos (本地),以便执行测试设置,任何对配置的帮助都会有所帮助。
另外,我已经使用防火墙-cmd--永久-- added =命令添加了端口。
发布于 2019-10-22 09:20:43
决心:
在这种情况下,为了解决这个问题,我有:
VirtualMachine.
的第二个适配器
之后,我启动了机器,并访问了IP/info.php和其他文件。
https://stackoverflow.com/questions/58499095
复制相似问题