public static boolean isOSLinux() {
        Properties prop = System.getProperties();

        String os = prop.getProperty("os.name");
        if (os != null && os.toLowerCase().indexOf("linux") > -1) {
            return true;
        } else {
            return false;
        }
    }

---------------------

本文来自 z278718149 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/z278718149/article/details/50735910?utm_source=copy 

 

posted on 2018-09-21 18:18  1161588342  阅读(783)  评论(0编辑  收藏  举报