05 2020 档案

摘要:package com.test; public class test { public static void main(String[] args) { // TODO Auto-generated method stub int[] arr= {22,33,44,55,66}; //print 阅读全文
posted @ 2020-05-26 10:02 雨曼晴川 阅读(99) 评论(0) 推荐(0) 编辑
摘要:package com.test; public class test { public static void main(String[] args) { // TODO Auto-generated method stub int[] arr= {22,33,44,55,66}; print(a 阅读全文
posted @ 2020-05-26 08:49 雨曼晴川 阅读(79) 评论(0) 推荐(0) 编辑
摘要:一. 报错 !ENTRY org.eclipse.oomph.p2.core 4 0 2020-05-25 16:05:41.038!MESSAGE FrameworkEvent ERROR!STACK 0org.osgi.framework.BundleException: Exception i 阅读全文
posted @ 2020-05-25 16:15 雨曼晴川 阅读(437) 评论(0) 推荐(0) 编辑
摘要:package com.test; import java.util.Scanner; //反转字符串public class test_6 { public static void main(String[] args) { // TODO Auto-generated method stub S 阅读全文
posted @ 2020-05-25 09:38 雨曼晴川 阅读(426) 评论(0) 推荐(0) 编辑
摘要:package com.test; public class zifuchuanbianli { public static void main(String[] args) { String s ="ABCDEabcdef123456!@#$%%^"; int big = 0; int small 阅读全文
posted @ 2020-05-22 14:08 雨曼晴川 阅读(971) 评论(0) 推荐(0) 编辑
摘要:package com.test; import java.util.Scanner; public class monidenglu { public static void main(String[] args) { Scanner sc = new Scanner(System.in); fo 阅读全文
posted @ 2020-05-22 09:16 雨曼晴川 阅读(162) 评论(0) 推荐(0) 编辑
摘要:public class duotaui_1 {/* * 多态运行规则 * 成员变量(int num =10;) * 编译看左边(父类),运行看右边(父类) * 成员方法print() * 编译看左边(父类),运行看右边(子类) * 静态方法: * 编译看左边(父类),运行看右边(父类) * 总结: 阅读全文
posted @ 2020-05-19 14:58 雨曼晴川 阅读(101) 评论(0) 推荐(0) 编辑
摘要:package com.test; public class test_3 { public static void main(String[] args) { System.out.println(); dog a =new dog(); a.setName("test"); a.eat(); a 阅读全文
posted @ 2020-05-15 09:30 雨曼晴川 阅读(93) 评论(0) 推荐(0) 编辑
摘要:一、环境 系统:centos 7 sendmail:sendmail.x86_64 0:8.14.7-5.el7 mailx版本:mailx-12.5-19.el7.x86_64 二、软件安装: 1、安装 sendmail #: yum -y install sendmail 2、安装mailx # 阅读全文
posted @ 2020-05-15 08:18 雨曼晴川 阅读(365) 评论(0) 推荐(0) 编辑
摘要:#备份数据库 db2 backup db TESTDB online to /opt/backup/db2_backup/$(date "+%Y%m%d")/TESTDB/ include logs#查看备份日志路径 db2 list history backup all for TESTDB #将 阅读全文
posted @ 2020-05-12 13:36 雨曼晴川 阅读(168) 评论(0) 推荐(0) 编辑
摘要:package com.test;//封装 public class test_2 { public static void main(String[] args) { animal a = new animal(); a.setAge(18); a.setName("zhangsan"); a.t 阅读全文
posted @ 2020-05-11 13:52 雨曼晴川 阅读(75) 评论(0) 推荐(0) 编辑
摘要:/* //创建对象的格式:类名对象名= new_ 类名();Student s = new Student() ; class Demo1_ Student {public static void main (String[] args)//创建对象的格式:类名对象名= new_ 类名();//对象 阅读全文
posted @ 2020-05-11 08:58 雨曼晴川 阅读(101) 评论(0) 推荐(0) 编辑
摘要:一. 二维数组遍历 package test_1; public class test_7 { public static void main(String[] args) { int[][] arr = {{1,2,3},{5,6},{12,13,14}}; for(int i=0; i< arr 阅读全文
posted @ 2020-05-10 19:40 雨曼晴川 阅读(85) 评论(0) 推荐(0) 编辑
摘要:package test_1;//取反public class test_4 { public static void main(String[] args) { int[] arr = {11,22,33,44,55}; reverseArray(arr); //调用取反方法 print(arr) 阅读全文
posted @ 2020-05-10 18:25 雨曼晴川 阅读(1097) 评论(0) 推荐(0) 编辑
摘要:int[] arr= new int[5]; 数据类型 [] 数组名 = new 数据类型【数组长度】;左边: int 数据类型[ ] :代表的数组,几个中括号代表几维数组arr: 合法的标识符右边:new: 创建一个新的实体或对象int:数据类型[ ]:代表数组5:代表数组的长度 package 阅读全文
posted @ 2020-05-10 17:34 雨曼晴川 阅读(167) 评论(0) 推荐(0) 编辑
摘要:1. for循环 #!/bin/bash a=0 for ((i=0 ; i <= 100; i++ )) do a=$((a+i)) done echo $a 2. awk语句 [root@localhost ~]# awk 'BEGIN { for(i=1; i<=100; i++) sum+= 阅读全文
posted @ 2020-05-09 09:07 雨曼晴川 阅读(193) 评论(0) 推荐(0) 编辑
摘要:gitlab官方安装文档地址 https://about.gitlab.com/install/ 一、系统环境1.系统版本[root@gitlab ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) 2.内存[root@g 阅读全文
posted @ 2020-05-08 16:23 雨曼晴川 阅读(207) 评论(0) 推荐(0) 编辑
摘要:package test_1; public class test_2 { public static void main(String[] args) { double[] myList = {1.9, 2.9, 3.4, 3.5}; for(int i=0;i < myList.length;i 阅读全文
posted @ 2020-05-08 16:13 雨曼晴川 阅读(96) 评论(0) 推荐(0) 编辑
摘要:snap是什么? Snap的安装包扩展名是.snap,类似于一个容器,完全独立于系统,它包含一个应用程序需要用到的所有文件和库(snap包包含一个私有的root文件系统,里面包含了依赖的软件包)。它们会被安装到单独的目录,各个应用程序之间相互隔离,互不影响。而且安装快捷、创建简单、运行安全,易管理。 阅读全文
posted @ 2020-05-08 14:33 雨曼晴川 阅读(280) 评论(0) 推荐(0) 编辑
摘要:一.环境mong002: 192.168.1.11(shard)mong003: 192.168.1.12(shard)mong004: 192.168.1.13(mongos) 二.安装1. 下载mongodb包wget http://fastdl.mongodb.org/linux/mongod 阅读全文
posted @ 2020-05-08 14:15 雨曼晴川 阅读(155) 评论(0) 推荐(0) 编辑
摘要:查看所有的安装的软件包 并在结果中查找包含vsftp 的文件rpm -qa | grep vsftpd 如果没有装则使用yum命令安装yum -y install vsftpd 创建用户useradd xiao passwd xiao #(回车)给用户xiao设置登录密码 创建用户并指定用户目录在/ 阅读全文
posted @ 2020-05-08 14:10 雨曼晴川 阅读(208) 评论(0) 推荐(0) 编辑
摘要:一. 安裝vnc yum install tigervnc-server -y cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service vim /etc/systemd/system/vnc 阅读全文
posted @ 2020-05-08 13:38 雨曼晴川 阅读(212) 评论(0) 推荐(0) 编辑
摘要:安装expect yum -y install expect 编写脚本 vim ssh.exp #!/usr/bin/expectspawn ssh root@192.168.57.134 -p 22expect "*Are you sure you want to continue connect 阅读全文
posted @ 2020-05-08 10:48 雨曼晴川 阅读(474) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示