转到MySQL的bin目录下,在此处打开终端 安装MySQL的服务 mysqld --install 初始化MySQL,把随机生成的密码保存下来 mysqld --initialize --console 随机生成的密码 QseEQHRdV9%z 开启MySQL服务 net start MySQL ...
分类:
数据库 时间:
2020-06-25 19:40:49
阅读次数:
64
package com.hadoop.hdfs;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.FileSystem;import org.apache.hadoop.fs.Path;import jav ...
分类:
其他好文 时间:
2020-06-25 17:46:58
阅读次数:
39
大日志文件切割shell脚本 #!/bin/bash # # 日志文件300M分割,并zip压缩,每个项目仅保留最新30个文件, # 文件格式:项目名称-年月日时分秒.zip # Author : # Date : # Email : # Version : 1.0 # # 日志目录 LOG_DIR ...
分类:
系统相关 时间:
2020-06-25 15:36:49
阅读次数:
59
自定义分区器: import org.apache.kafka.clients.producer.Partitioner; import org.apache.kafka.common.Cluster; import org.apache.kafka.common.PartitionInfo; im ...
分类:
其他好文 时间:
2020-06-25 15:30:00
阅读次数:
55
写流程 1.HDFS Client调用DistributedFileSystem.create(filePath)方法,去和NN进行【RPC】通信! 2.NN 会去check这个路径的文件是否已经存在,是否有权限能够创建这个文件! 假如都ok,就去创建一个新的文件,但是这时还没写数据,是不关联任何的 ...
分类:
其他好文 时间:
2020-06-25 11:57:36
阅读次数:
65
简介 curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具的意思。 它的功能非常强大,命令行参数多达几十种。如果熟练的话,完全可以取代 Postman 这一类的图形界面工具。 本文介绍它的主要命令行参数,作为日常的参考,方便查阅。内容主要翻译自《 ...
分类:
Web程序 时间:
2020-06-25 11:54:32
阅读次数:
61
1、nacos服务注册中心 2、nacos配置中心 # nacos配置spring: application: name: nacos-config-client cloud: nacos: discovery: server-addr: localhost:8848 #Nacos服务注册中心地址 ...
分类:
编程语言 时间:
2020-06-25 11:40:23
阅读次数:
211
一、JavaWeb 1. 基本概念 JavaWeb: 使用Java语言开发基于互联网的项目 软件架构: C/S: Client/Server 客户端/服务器端 在用户本地有一个客户端程序,在远程有一个服务器端程序 优点: 用户体验好 缺点: 开发、安装,部署,维护 麻烦 B/S: Browser/S ...
分类:
Web程序 时间:
2020-06-24 23:31:57
阅读次数:
117
asyncio 快速使用 import asyncio async def request(url): print("request正在执行 %s"%url) print("request执行完成 %s"%url) # 创建实践循环 event_loop = asyncio.get_event_lo ...
分类:
其他好文 时间:
2020-06-24 23:22:54
阅读次数:
80
效果图 功能 实现bar左右拖拽 左侧:js通过width控制 :style="{width: lwidth}" 右侧:盒子设置定位position,js通过的left来控制,同时样式需要设置 right: 0; bottom: 0; 才会出现width 中间:设置定位position,使用calc ...
分类:
其他好文 时间:
2020-06-24 19:53:14
阅读次数:
108