上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 111 下一页
摘要: 使用this调用成员变量和构造函数public class Person { String name; int age; String address; Person() { System.out.println("Person 无参构造"); } Person(String name, int age) { this.name = ... 阅读全文
posted @ 2020-08-31 23:07 thomas_blog 阅读(87) 评论(0) 推荐(0)
摘要: static成员变量public class Person { String name; static int age; Person() { System.out.println("Person 无参构造"); } void eat() { System.out.println("Person 吃饭"); }}也可以通过类名方式调用... 阅读全文
posted @ 2020-08-31 22:50 thomas_blog 阅读(121) 评论(0) 推荐(0)
摘要: super调用父类构造,必须要写在第一行//Person.javapublic class Person { String name; int age; Person() { System.out.println("Person 无参构造"); } Person(String name, int age) { System.out.prin... 阅读全文
posted @ 2020-08-31 22:28 thomas_blog 阅读(204) 评论(0) 推荐(0)
摘要: 创建分区[root@localhost lohr]# fdisk /dev/sdb欢迎使用 fdisk (util-linux 2.23.2)。更改将停留在内存中,直到您决定将更改写入磁盘。使用写入命令前请三思。命令(输入 m 获取帮助):p磁盘 /dev/sdb:5368 MB, 5368709120 字节,10485760 个扇区Units = 扇区 of 1 * 512 = 512 byte... 阅读全文
posted @ 2020-08-09 23:48 thomas_blog 阅读(539) 评论(0) 推荐(0)
摘要: 扩容 [root@localhost lohr]# lvextend -L +2G /dev/thomas/thomas-lv Size of logical volume thomas/thomas-lv changed from 1.00 GiB (256 extents) to 3.00 Gi 阅读全文
posted @ 2020-08-09 22:27 thomas_blog 阅读(201) 评论(0) 推荐(0)
摘要: 创建分区[root@localhost lohr]# fdisk /dev/sdb 欢迎使用 fdisk (util-linux 2.23.2)。更改将停留在内存中,直到您决定将更改写入磁盘。使用写入命令前请三思。Device does not contain a recognized partition table使用磁盘标识符 0xa7a34d5d 创建新的 DOS 磁盘标签。命令(输入 m ... 阅读全文
posted @ 2020-08-09 22:19 thomas_blog 阅读(1028) 评论(0) 推荐(0)
摘要: yum自动补全yum install bash-completion -y阿里云官方镜像站https://developer.aliyun.com/mirror/添加yum软件仓库wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo或者sudo yum-config-manag... 阅读全文
posted @ 2020-08-09 21:16 thomas_blog 阅读(729) 评论(0) 推荐(0)
摘要: 下载地址http://activemq.apache.org/download.htmlhttp://archive.apache.org/dist/activemq/启动服务mqtt管理员登录用户名密码在 users.properties 配置文件中定义查看当前mqtt状态,管理mqtt等操作 阅读全文
posted @ 2020-07-05 21:19 thomas_blog 阅读(219) 评论(0) 推荐(0)
摘要: 为mqtt连接添加用户名密码默认没有用户名密码修改配置文件添加用户名密码 添加完效果重启mqtt未添加用户名连接测试添加用户名连接测试连接成功 阅读全文
posted @ 2020-07-05 20:38 thomas_blog 阅读(5593) 评论(0) 推荐(0)
摘要: 目前使用的阿里服务器设置安全组规则关闭防火墙配置入站出站规则 阅读全文
posted @ 2020-06-14 17:44 thomas_blog 阅读(3731) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 111 下一页