oracle 11g断网安装时,没有检测net的功能,所以安装完后,netstat -an 发现自动监听的是127.0.0.1:1521,这样安装完成后,其他的主机根本无法连接,是什么原因呢? 排错后发现,是主机名的问题: 1 在cmd中,输入hostname 发现主机名 2 在文件夹:c:\windows\system32\drivers\etc 修改hosts文件: 源文件为: # Copyright (c) - Microsoft Corp. # # This is a sample H
在数据目录下编辑postgresql.conf文件,我的数据目录是/usr/local/pgsql/data vi postgresql.conf 找到如下内容: ... #listen_addresses = 'localhost' # what IP address(es) to listen on; # comma-separated list of addresses;
Java 实现判断 主机是否能 ping 通 代码实现如下: import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; /** * Created by Miracle Luna on 2019/12/10 */ public class PingUtil { public static void main(String[] args) { String host1