首先修改配置文件 vi /etc/ssh/sshd_config 找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 22 Port 18522 然后保存退出 6.5版本:/etc/init.d/sshd restart 7.4版本:systemctl restart ss ...
分类:
系统相关 时间:
2020-07-22 20:36:23
阅读次数:
110
向屏幕输出 代码 package hello; public class Hello { public static void main(String[] args) { // TODO Auto-generated method stub // 输出 System.out.println("Hel ...
分类:
编程语言 时间:
2020-07-22 20:05:26
阅读次数:
70
接口概述: 接口是Java语言中的一种引用类型,是方法的"集合",所以接口的内部主要就是定义方法,包含常量,抽象方法(JDK 7及以前),额外增加默认方法和静态方法(JDK 8),额外增加私有方法(jdk9)。 接口的定义,它与定义类方式相似,但是使用 interface 关键字。它也会被编译成.c ...
分类:
编程语言 时间:
2020-07-22 16:21:35
阅读次数:
70
CentOS7.x安装Docker # 安装依赖包 yum install -y yum-utils device-mapper-persistent-data lvm2 # 添加Docker软件包源 yum-config-manager --add-repo https://download.do ...
分类:
其他好文 时间:
2020-07-22 16:17:18
阅读次数:
76
/**功能:进行while和do-while循环的测试 */ public class Test { public static void main(String[] args) { int i=0; //声明一个变量 System.out.println("准备进行while循环"); while ...
分类:
编程语言 时间:
2020-07-22 15:57:32
阅读次数:
68
import sun.misc.BASE64Decoder; String res = new sun.misc.BASE64Encoder().encode("03100003:c4ca4238a0b923820dcc509a6f75849b".getBytes()); System.out.pr ...
分类:
其他好文 时间:
2020-07-22 15:52:04
阅读次数:
78
一:创建模板 二:图表Docment构建 public Document chart() { var doc = new Document(); var builder = new DocumentBuilder(doc); var shape = builder.InsertChart(Aspos ...
分类:
Web程序 时间:
2020-07-22 15:46:44
阅读次数:
95
实验1:使用RIPv1协议跨越主类网络边界 Step1:输入必打命令 <Huawei>undo terminal monitor(关闭自动弹窗) <Huawei>system-view (进入系统视图)[Huawei]sysname R1(命名路由器为R1)[R1]user-interface co ...
分类:
其他好文 时间:
2020-07-22 15:40:51
阅读次数:
75
public class Test { public static void main(String[] args) { int sum=0; for(int i=1;i<=100;i++) { sum+=i;/**进行累加 */ } System.out.println("结果为"+sum); } ...
分类:
编程语言 时间:
2020-07-22 15:34:27
阅读次数:
111
2 3 public class MyBubbleSort { 4 public static void main(String[] args) { 5 int num[] = {10,8,33,54,1,6,12,43,32,27}; 6 bubbleSort(num); 7 for (int i ...
分类:
编程语言 时间:
2020-07-22 11:34:29
阅读次数:
63