![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
WilliamVector
大胆假设,小心求证
展开
-
简单的Tomcat文件服务器搭建
##前置条件 OS:Ubuntu20 ##tomcat下载 1.打开http://tomcat.apache.org/侧边导航点击Download->tomcat8,下载tar.gz(pgp,sha512) 2.解压 tar -zxfapache-tomcat-8.5.68.tar.gz 到home目录下(或其他自己喜欢的目录) 3.修改conf下server.xml文件,在末尾host内添加: <!-- add for file access --> <...原创 2021-06-30 16:05:48 · 161 阅读 · 0 评论 -
Java执行CMD并获取执行结果
public static List<String> execWithResult(String cmd){ List<String> resultList = new ArrayList<String>(); if(StringUtils.isEmpty(cmd)) { return resultList; } Process process = ...原创 2020-06-10 10:09:23 · 787 阅读 · 0 评论