数字海洋上的Virtualmin部署警告

时间:2016-09-17 19:10:55

标签: hosting digital-ocean virtualmin

我似乎在Digital Ocean上遇到了这个错误:

"您系统的主IP地址似乎已从xxx.xx.xx.xxx更改为xx.xx.x.x.使用旧地址的虚拟服务器可能无法访问或提供错误的Web内容。"

这是在数字海洋上全新安装的virtualmin。

你知道如何解决这个问题吗?

2 个答案:

答案 0 :(得分:1)

在新的Droplet上部署自定义映像,该映像上的Virtualmin / Webmin会注意到分配给该Droplet的新IP地址。发生这种情况时,首次登录Virtualmin / Webmin时在页面上显示上述错误消息-

要解决此错误,您应该更改服务器的IP地址。以下是有关如何在Webmin中更改IP地址的步骤:

如何在Webmin中更改IP地址

Step 1. We logged into Webmin clicked on Networking menu on the left panel.

Step 2. Here we just click on Network Configuration.

Step 3. Then select Network Interfaces for setting up new IP address configuration.

Step 4. Here we click on enp0s3 network interface for new IP address configuration.

(it can be named in many ways, including eth0, enp0s1, ig0 and so on, and your system may have more than one adapter)

Step 5. Now, here we have five changes for new IP address configuration.

->  Select Yes to enable the Network Interface and activated on boot.
->  Select Static Configuration option in the IPV4 address section.
->  After selecting the static configuration, we enter the static IP address on IPV4 Address field.
->  Then enter Subnet Mask on Netmask field (eg: 255.255.255.0).
->  Finally enter the Broadcast address (eg: 192.168.1.255). Most probably Broadcast address is taken by the system automatically.

After all, save the settings.

Step 6. Then, go to Routing and Gateways, select the previously configured interface name from the dropdown and enter the correct Gateway IP address in the field.

Step 7. Click Save and go back to the main screen.

Step 8. Click on Apply Configuration button.

We verified the IP Address of the system just by running the below command.

Linux command: ifconfig

如果由于IP更改而遇到登录Webmin的任何问题,请按照以下步骤解决该错误

Step 1. Check the log file /var/log/webmin/miniserv.log to identify the problem. 

Step 2. If the new IP address is not configured in /etc/webmin/miniserv.conf file then we need to add it.

Step 3. Log into Webmin and go to Addresses and Networking -> Change IP Addresses, and there we can change references to the old IP address to the new one.

Step 4. Finally rebooted the server.

就是这样,现在问题已解决。

答案 1 :(得分:0)

事实证明,解决此问题的最佳方法是确保主机名正确无误。一旦完成所有设置,就会在webmin模块上重新启动。