前期准备 准备两台Linux,一主,一从,具体Linux安装MySQL操作步骤:点我直达 集群搭建 注意事项 一主可以多从 一从只能一主 关闭主从机器的防火墙策略 chkconfig iptables off service iptables stop 主服务器配置 修改my.cnf文件 vim / ...
分类:
数据库 时间:
2020-06-17 23:13:33
阅读次数:
107
一、多线程的实现1.继承Thread类java.lang.Thread是一个线程操作的核心类。新建一个线程最简单的方法就是直接继承Thread类,而后覆写该类中的run()方法(就相当于主类中的main方法)publicclassMyThreadextendsThread{@Overridepublicvoidrun(){System.out.println("MyThreadisrun");}}
分类:
编程语言 时间:
2020-06-17 11:09:18
阅读次数:
63
MySQL数据库 一、基本使用 cls 清屏(windows) ctrl + l 清屏(linux) 1、开启或关闭mysql服务 (1)windows:超级管理员权限下才能使用 ? 启动mysql:net start mysql ? 停止mysql:net stop mysql (2)linux: ...
分类:
数据库 时间:
2020-06-17 01:56:58
阅读次数:
72
一、sonar安装步骤 (部署硬件要求2G以上内存) 1. 准备镜像 docker pull postgres docker pull sonarqube2. 编写脚本 1.start-postgresql.sh #!/bin/bash docker stop postgresql docker r ...
分类:
其他好文 时间:
2020-06-16 20:39:08
阅读次数:
81
一:服务器监听配置 1:启动与关闭监听进程 [oracle@oracle root]$ lsnrctl start [oracle@oracle root]$ lsnrctl stop 2:增加新的监听器 方法一: [root@oracle ~]# xhost + [root@oracle ~]# ...
分类:
数据库 时间:
2020-06-16 20:31:31
阅读次数:
70
热重启的意义 可以让用户神不知鬼不觉的,更新后端的项目 测试的时候,也不用停止项目然后再开启项目,降低项目开启时间 golang热重启的主要步骤 将编译好的项目覆盖进行 golang热重启的思想 监听重启信号 收到信号之后,进行fork子进程,将服务监听的socket文件描述符传递给子进程 子进程监 ...
分类:
其他好文 时间:
2020-06-16 20:00:08
阅读次数:
67
Could not initialize class java.awt.image.BufferedImage 只需在TOMCAT启动参数中加"-Djava.awt.headless=true \"启动文件是:\bin\catalina.sh 加入的上下文 是 else "$_RUNJAVA" $J ...
分类:
编程语言 时间:
2020-06-16 15:26:11
阅读次数:
152
CentOS6系统防火墙开启、关闭、查看状态 注意:要进入到~目录 也就是家目录下才能查看防火墙 进入home目录:cd ~ 关闭虚拟机防火墙: 关闭命令: service iptables stop 永久关闭防火墙:chkconfig iptables off 两个命令同时运行,运行完成后查看防火 ...
分类:
系统相关 时间:
2020-06-16 14:48:57
阅读次数:
72
1 查看防火墙状态 [root@lvxinghao ~]# systemctl status firewalld 2 查看开机是否启动防火墙服务 [root@lvxinghao ~]# systemctl is-enabled firewalld 3 关闭防火墙 [root@lvxinghao ~] ...
分类:
系统相关 时间:
2020-06-16 13:32:34
阅读次数:
95
查看防火墙状态: systemctl status firewalld.service关闭防火墙: systemctl stop firewalld.service执行开机禁用防火墙自启命令 : systemctl disable firewalld.service启动防火墙:systemctl s ...
分类:
其他好文 时间:
2020-06-16 13:17:59
阅读次数:
122