摘要: systemctl status network.service 出现以下错误“rtnetlink answers file exists” 的解决方法和 NetworkManager 服务有冲突,这个好解决,直接关闭 NetworkManger 服务就好了。service NetworkManag 阅读全文
posted @ 2017-09-02 21:15 Dsp Tian 阅读(4911) 评论(0) 推荐(0) 编辑
摘要: 查看服务是否启动 ps -aux | grep tomcat 查看端口是否占用 netstat –apn | grep 8080 阅读全文
posted @ 2017-09-02 21:15 Dsp Tian 阅读(746) 评论(0) 推荐(0) 编辑
摘要: ubuntu右键在当前位置打开终端 ubuntu增加右键命令: 在终端中打开 软件中心: 搜索nautilus-open-terminal安装 命令行: sudo apt-get install nautilus-open-terminal 重新加载文件管理器 nautilus -q 或注销再登录 阅读全文
posted @ 2017-09-02 21:14 Dsp Tian 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 传统的方法是修改.Xauthority文件权限,不过我试了没有用。 后来发现我的问题是因为安装了NVIDIA cuda驱动而导致的。 所以先卸载nvidia驱动,再更新,就可以正常进入了。 命令: sudo apt-get remove --purge nvidia-* sudo apt-get i 阅读全文
posted @ 2017-09-02 21:14 Dsp Tian 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { time_t now; struct tm *w; time(&now); w=localtime(&now); printf("%04d/%02d/%02d\n%02d:%02d:%02d\n",w->tm_year+1900, ... 阅读全文
posted @ 2017-09-02 21:13 Dsp Tian 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 虚拟机下ubuntu共享方式上网: 一. 有线网络 在有线网络的条件下,vmware的安装非常简单,上网方式几乎不用怎么设置(默认NAT模式) 如果默认情况下不能上网,则按以下步骤尝试: ******************************************************** 阅读全文
posted @ 2017-09-02 21:13 Dsp Tian 阅读(924) 评论(0) 推荐(0) 编辑
摘要: class RunnableDemo implements Runnable { private Thread t; private String threadName; RunnableDemo( String name) { threadName = name; System.out.println("Creating " + threa... 阅读全文
posted @ 2017-09-02 21:12 Dsp Tian 阅读(440) 评论(0) 推荐(0) 编辑
摘要: xml: 代码: 阅读全文
posted @ 2017-09-02 21:12 Dsp Tian 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/u010900574/article/details/50792353 同时加载编译多个jar包和java文件 在个人平常使用或者当我们把代码部署到Linux服务器上的时候,我们经常需要通过命令行编译和运行Java文件,网上关于这个的方法大多是通过 这 阅读全文
posted @ 2017-09-02 21:11 Dsp Tian 阅读(525) 评论(0) 推荐(0) 编辑
摘要: package rw; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; public class test { p... 阅读全文
posted @ 2017-09-02 21:11 Dsp Tian 阅读(424) 评论(0) 推荐(0) 编辑
摘要: import java.net.InetAddress; import java.net.UnknownHostException; public class MainProcess { public static void main(String[] args) { InetAddress localhost = null; try { ... 阅读全文
posted @ 2017-09-02 21:10 Dsp Tian 阅读(376) 评论(0) 推荐(0) 编辑
摘要: package bd; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class JDBCTest { public stati... 阅读全文
posted @ 2017-09-02 21:10 Dsp Tian 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 首先在https://github.com/xerial/sqlite-jdbc下载jar包 阅读全文
posted @ 2017-09-02 21:09 Dsp Tian 阅读(998) 评论(0) 推荐(0) 编辑
摘要: import java.util.UUID; public class MainProcess { public static void main(String[] args) { UUID uuid = UUID.randomUUID(); System.out.println(uuid); } } 阅读全文
posted @ 2017-09-02 21:08 Dsp Tian 阅读(406) 评论(0) 推荐(0) 编辑
摘要: import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; public class MainProcess { public static void main(String[] args) { Calendar Cld = C... 阅读全文
posted @ 2017-09-02 21:07 Dsp Tian 阅读(1519) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class MainProcess { public static String getHtmlConentByUrl... 阅读全文
posted @ 2017-09-02 21:07 Dsp Tian 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: package sdfg; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class sdfg { public static String createMD5(String pw) ... 阅读全文
posted @ 2017-09-02 21:05 Dsp Tian 阅读(394) 评论(0) 推荐(0) 编辑
摘要: package sdfg; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class sdfg { public static String createMD5(String pw) ... 阅读全文
posted @ 2017-09-02 21:05 Dsp Tian 阅读(560) 评论(0) 推荐(0) 编辑
摘要: package aaa; public class aaa { public static int add(int a,int b) { return a+b; } public static void main(String args[]) { System.out.println(add(1,2)); ... 阅读全文
posted @ 2017-09-02 21:04 Dsp Tian 阅读(398) 评论(0) 推荐(0) 编辑
摘要: package sdfg; import java.net.InetAddress; //import java.net.UnknownHostException; import java.io.*; public class sdfg { public static void main(String[] args) throws IOException { ... 阅读全文
posted @ 2017-09-02 21:04 Dsp Tian 阅读(513) 评论(0) 推荐(0) 编辑