- 博客(38)
- 收藏
- 关注
原创 MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
npm config set msvs_version 2017
2020-02-13 19:37:16
2766
1
原创 搭建FRP服务器 实现内网穿透
下载 frp 客户端 和 服务端https://github.com/fatedier/frp/releases这里选择 frp_0.30.0_linux_amd64.tar.gz 和 frp_0.30.0_windows_amd64.zip上传 frp_0.30.0_linux_amd64.tar.gz 到公网服务器Linuxcd /opttar -zxvf frp_0.30.0_l...
2019-12-28 23:04:39
767
原创 启动命令
java -jar /opt/spring-cloud-eureka-1.0.0.jar > /opt/eureka1.log --spring.profiles.active=server1 &#!/bin/bash/home/jdk/jdk1.8.0_131/bin/java -Xmn512m -Xmx1024m -Xss256k -XX:+UseConcMarkSwe...
2019-12-19 15:04:06
165
原创 antd 自定义表单验证 onBlur
<Form.Item label="邮箱" hasFeedback> {getFieldDecorator('email', { initialValue: userData.email, validateFirst: true, validateTrigger: 'onBlur...
2019-12-12 17:57:55
4596
原创 Nexus 3.19.1
Nexus 3.19.1文档https://help.sonatype.com/learning/repository-manager-3wget https://sonatype-download.global.ssl.fastly.net/nexus/3/latest-unix.tar.gztar -zvxf nexus-3.19.1-01-unix.tar.gz -C /usr/lo...
2019-12-12 11:16:02
1021
原创 解决mysql数据库tinyInt(1) 转换为java的Boolean解决方案
jdbc:mysql://127.0.0.1:3306/DEMO?tinyInt1isBit=false
2019-12-11 17:47:51
978
原创 Intellij IDEA运行报 Command line is too long
修改项目下 .idea\workspace.xml,找到标签<component name="PropertiesComponent"> 在标签里加一行<property name="dynamic.classpath" value="true" />
2019-11-13 14:54:12
163
原创 hive
HiveServer2:一、Hive2 Beeline:-Beeline要与HiveServer2配合使用,支持嵌入和远程模式-启动HiveServer2,./bin/hiveserver2 或者 hive --service hiveserver2 &-启动Beeline: 1. ./bin/beeline 或者 hive --service beeline beelin...
2019-11-13 10:49:45
109
原创 SpringBoot启动时 提示没有主清单属性
pom.xml<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plu...
2019-11-13 10:01:25
493
原创 修改hosts.bat
@attrib -R C:\WINDOWS\system32\drivers\etc\hosts@echo=>>C:\WINDOWS\system32\drivers\etc\hostsecho 127.0.0.1 www.baidu.com>>C:\WINDOWS\system32\drivers\etc\hosts@attrib +R C:\WINDOWS\sys...
2019-11-04 19:18:59
451
原创 DEDE
==============每个页面标题关键字描述标签=======================首页标题: {dede:global.cfg_webname/}首页关键字:{dede:global.cfg_keywords/}首页描述:{dede:field name='description' function='html2text(@me)'/}栏目列表标题: {dede:...
2019-11-01 10:12:44
467
原创 hbase 常用 shell
#进命令行hbase shell#批量禁用表disable_all 'MIDDLE_PLATFORM.*'#批量删除表drop_all 'MIDDLE_PLATFORM.*'
2019-10-30 17:21:03
195
原创 js时间戳转时分秒
MillisecondToDate = mss => { /* eslint-disable */ let date=''; const days = parseInt(mss / (1000 * 60 * 60 * 24)); const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 ...
2019-09-16 11:02:05
1178
原创 Nginx学习——nginx的下载、安装和启动
Nginx作为一款轻量级WEB服务服务器,除了作为http代理和反向代理服务器,还更广泛的运用于负载均衡、高级http服务、邮件代理服务等。接下来,我们开始学习如何下载安装Nginx服务器,包括windows平台和linux平台。1 获取Nginx的官方网址:http://nginx.orgNginx下载地址:http://nginx.org/en/download.html主线开发版...
2019-09-10 09:55:03
495
原创 cdh 本地 parcel 包安装 phoenix
ps -ef|grep httpdyum install httpd开机启动systemctl enable httpd.service启动httpd服务systemctl start httpd.servicecd /var/www/htmlmkdir -p phoenix/apache-phoenix-5.1.0-cdh6.0.1/parcels/cd /var/ww...
2019-08-21 16:30:48
811
原创 YUM
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repoyum -y install apache-maven
2019-08-01 12:25:50
105
原创 Centos7 桥接网络
vi /etc/sysconfig/network-scripts/ifcfg-ens33DEVICE=ens33TYPE=EthernetONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=staticIPADDR=10.0.50.240NETMASK=255.255.255.0GETWAY=10.0.50.254DNS1=10.6.124.202DN...
2019-08-01 09:58:19
115
原创 在线安装CDH6.X
##免密#生成ssh-keygen -t rsa#本机免密ssh-copy-id localhost#CM yum源cd /etc/yum.repos.d/wget https://archive.cloudera.com/cm6/6.0.1/redhat7/yum/cloudera-manager.repo vi cloudera-manager.repo#去掉enab...
2019-08-01 09:48:39
631
原创 CDH 5.13.1安装 apache-phoenix-4.14.0-cdh5.13.2
CDH 5.13.1安装 apache-phoenix-4.14.0-cdh5.13.2添加phoenix parcelhttps://archive.apache.org/dist/phoenix/apache-phoenix-4.14.0-cdh5.13.2/parcels/下载分配 激活HBase 配置 phoenix 开启命名空间和二级索引hbase-site....
2019-07-30 18:50:52
625
原创 连接池配置项
/*** ## 连接池配置项** # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 缺省:30秒* connectionTimeout = 30000** # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),缺省:10分钟* idleTimeout = 600000** # 一个连接的生命时长(毫秒),超...
2019-07-17 09:59:24
291
原创 yarn 错误There appears to be trouble with your network connection. Retrying
yarn 错误There appears to be trouble with your network connection. Retrying…原因:yarn超时解决途径:1、安装好后更换淘宝镜像yarn config set registry https://registry.npm.taobao.org...
2019-07-14 20:32:59
60736
14
转载 使用 jdk1.8 lambda 表达式对 HttpClient 进行封装
import org.apache.http.HttpEntity;import org.apache.http.HttpStatus;import org.apache.http.NameValuePair;import org.apache.http.client.config.RequestConfig;import org.apache.http.client.entity.Url...
2019-07-10 15:31:36
1765
原创 [转] springboot @async 无效
最开始使用Springboot ,发现加上注解@Async后没有效果, 然后度了一下 ,才知道需要三步配置.在@SpringBootApplication启动类 添加注解@EnableAsync异步方法使用注解@Async ,返回值为void或者Future切记一点 ,异步方法和调用方法一定要**** 写在不同的类中 ****,如果写在一个类中,是没有效果的@Async具体解释和实现代码...
2019-07-01 11:18:31
176
原创 MybatisPlus修改时空字段不修改
在更新数据时,MybatisPlus不会进行修改属性为空的数据表字段。解决办法:只需要在实体类的属性上加一行注释即可 /** * 姓名 */ @TableField(fill = FieldFill.UPDATE) private String name;这行注释的意思是:在name这个属性执行修改时,将自动填充一个值(默认为null),即将字段修改为...
2019-06-13 10:44:46
2468
原创 mybatisPlus-逻辑删除
SpringBoot 配置方式:application.yml 加入配置(如果你的默认值和mp默认的一样,该配置可无):yml文件(区别是多了一个路径db-config,同学们细看了)mybatis-plus: global-config: db-config: logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-not...
2019-06-12 10:26:52
6788
4
原创 Bean Validation
常见的元数据meta-datacommentversion@Null对象,为空Bean Validation 1.0@NotNull对象,不为空Bean Validation 1.0@AssertTrue布尔,为TrueBean Validation 1.0@AssertFalse布尔,为FalseBean Validation 1.0...
2019-06-11 17:51:28
181
翻译 解决yarn全局安装模块后但仍提示无法找到命令的问题
如果使用yarn global add xxxx 安装了xxxx插件之后,但是在cmd窗口中仍然提示类似命令无法找到(Command not found)的错误,一般是由于yarn的环境没有配置好。可以通过以下的方法,将yarn的环境配置环境中。首先,先查看一下yarn的bin目录,输入yarn global bin:C:\Users\Administrator\AppData\Local\Y...
2019-06-08 16:52:54
36240
原创 sed删除以某变量开头的一行
想删除以$ip变量开头的那一行,这命令该怎么写呢?sed -i '/^'$ip'/d' /etc/hosts单引号内是sed的作用域,而ip为shell变量,要使变量ip得到解析,要拿到sed作用域外面来。...
2019-05-23 14:53:53
2221
翻译 构造函数build模式
public class Student { private String name; private int stuNum; private int age; private int classNum; private int height; private int weight; public Student(Builder build...
2019-05-15 11:04:37
1250
原创 Std Err: /usr/sbin/hst: line 460: install-activity-analyzer.sh: command not found
卸载后重新安装AMBARI 2.7.3 报错:While trying to install HDP with Ambari, I often end up getting this error.I have tried multiple times and even downloaded tar.gz file and extracted it as per documentation a...
2019-04-18 08:34:07
2648
原创 Centos7 在线安装 Mysql5.7
Install MySQL and the MySQL community server, and start the MySQL service:yum localinstall \https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpmyum install mysql-community-server...
2019-04-17 09:09:01
154
原创 Centos免密设置
规划服务器(这里用四台服务器来进行配置)在每台服务器上配置域名访问vi /etc/hosts 添加以下内容172.18.100.71 master1172.18.100.70 agent1172.18.100.69 agent2172.18.100.68 agent3在每台服务器上执行,执行后会在当前用户的.ssh目录下生成id_rsa和id_rsa_pub两...
2019-04-15 16:54:05
558
原创 Apache atlas 安装
Apache atlas 安装1./etc/profile,需要配JAVA_HOME。2.环境:MAVEN3.6/JDK83.下载 wget https://www.apache.org/dyn/closer.cgi/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz4.解压 tar xvfz apache-atlas-1.1.0-source...
2019-04-15 11:26:35
891
原创 堆栈问题1
堆栈问题1package com.example.web;import java.util.HashMap;public class Test { private static int i = 1; private static String x = "test"; private static HashMap<String, String> map ...
2019-04-09 16:15:07
395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅