博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: linux启动服务,外网访问不到对应端口时,十有八九是因为防火墙没有关,关闭方法: 1.暂时关闭防火墙 service iptables stop 2.永久关闭 chkconfig iptables off 查看自启动状态列表 on chkconfig iptables --list 阅读全文
posted @ 2020-03-04 09:32 MrSharp 阅读(229) 评论(0) 推荐(0)
摘要: 在pom.xml文件中增加build配置 1 <build> 2 <plugins> 3 <plugin> 4 <artifactId>maven-assembly-plugin</artifactId> 5 <configuration> 6 <descriptorRefs> 7 <descrip 阅读全文
posted @ 2020-03-04 09:26 MrSharp 阅读(5377) 评论(0) 推荐(0)
摘要: 1. 实现IBolt接口的bolt需要显式调用collector.ack(); 2. 继承自BaseBasicBlot的bolt, 会帮你自动调用ack的 阅读全文
posted @ 2020-03-02 22:21 MrSharp 阅读(538) 评论(0) 推荐(0)
摘要: Maven设置http代理 编辑~/.m2/settings.xml文件,添加如下配置 找到 <proxies> 节点。去掉相应的注释,设置代理信息如下: 1 <proxy> 2 <id>optional</id> 3 <active>true</active> 4 <protocol>http</ 阅读全文
posted @ 2020-03-02 18:29 MrSharp 阅读(425) 评论(0) 推荐(0)
摘要: cmd命令cd到jre/bin目录下 输入命令keytool -import -alias 别名 -keystore cacerts -file ‪C://certs//elasticsearch//elasticsearch.crt 密码changeit 查看证书 keytool -list -k 阅读全文
posted @ 2020-02-29 13:51 MrSharp 阅读(2127) 评论(0) 推荐(1)
摘要: unset http_proxy unset https_proxy 暂时取消代理,若永久取消代理,需要修改/etc/yum.conf 去掉 proxy=http://proxyhost:8080 阅读全文
posted @ 2020-02-27 12:01 MrSharp 阅读(1007) 评论(0) 推荐(0)
摘要: linux中缺少java-1.8.0-openjdk-devel.x86_64 运行命令yum install java-1.8.0-openjdk-devel.x86_64 参考资料:https://www.cnblogs.com/yjm0330/p/10174170.html 阅读全文
posted @ 2020-02-27 10:34 MrSharp 阅读(1162) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/lfhappy/p/10798400.html centos7设置静态ip,记录备查 阅读全文
posted @ 2020-02-27 10:27 MrSharp 阅读(148) 评论(0) 推荐(0)