private static List<String> getAllLocalIp_Linux() {

        List<String> list = new ArrayList<String>();
        InetAddress inet = null;
        Enumeration allNetInterfaces = null;

        try {
            allNetInterfaces = NetworkInterface.getNetworkInterfaces();// 获取此机器上的所有接口
            while (allNetInterfaces.hasMoreElements()) {
                NetworkInterface netInterface = (NetworkInterface) allNetInterfaces.nextElement();
                Enumeration addresses = netInterface.getInetAddresses();
                while (addresses.hasMoreElements()) {
                    inet = (InetAddress) addresses.nextElement();
                    if (inet != null && inet instanceof Inet4Address) {
                        String ip = inet.getHostAddress();
                        list.add(ip);
                    }
                }
            }
        } catch (SocketException e) {
            logger.error(e);
        }

        return list;
    }