Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rocket domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mailchimp-for-wp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114

Notice: 函数 _load_textdomain_just_in_time 的调用方法不正确soledad 域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init 操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114
在Windows中编辑主机文件 - Practical Tips

在Windows中编辑主机文件

by Mike

编辑虚拟主机的主机文件并不容易。文件很容易找到,但你需要适当的权限才能进行更改。

虚拟主机:这是获得编辑主机文件权限的方法

主机文件确保为每个IP地址分配一个主机名。该主机文件可以在Windows文件的深处找到。您可以使用文本编辑器编辑主机文件。

  • 在Windows资源管理器中,输入“%windir%/system32/drivers/etc”。
  • 接下来,右键单击 “hosts“。
  • 现在转到”打开方式”,选择记事本。
  • 记事本打开,现在可以编辑文件了。

在Windows中使用编辑器更改主机文件

如果您以管理员身份打开编辑器,就可以开始编辑主机文件了。

  • 在编辑器中按住Ctrl键和“O”键。或者,您也可以依次点击“文件”和“打开……”。
  • 在新打开的窗口中,找到C:\Windows\System32\drivers\etc。确保在右下角选择“所有文件(*.*)”,而不是“文本文件(*.txt)”,以便同时显示主机文件。
  • “etc”文件夹包含“hosts”文件。如果您打开了主机文件,您将看到一些英文注释,这些注释以符号来编写评论和备注,以供您参考。
  • 如果您现在想要添加新条目,最好在评论下方进行。每个条目应单独一行。在行首写上IP地址,并用至少一个空格隔开对应的主机名。
  • 如果您想使用主机文件阻止所有网络流量进入特定域,请使用“127.0.0.1”作为IP地址。示例: 如果您输入一行“127.0.0.1 google.com”,则访问google.com将被阻止。例如,您将无法再通过浏览器访问该网页。
  • 编辑完主机文件后,在编辑器窗口中按住键盘上的Ctrl键和“S”键,保存修改后的Windows文件。

Related Articles

Leave a Comment