当前位置: 首页 > news >正文

做三国mod的网站国际商务网站

做三国mod的网站,国际商务网站,自己网站做搜索引擎优化,深圳摇号申请注册阅读目录#xff1a;1. 关闭防火墙和Selinux2. 安装所需环境JDK,Zookeeper3. 下载Kafka 1.0.0版本4. 配置Kafka5. 启动Kafka并验证6. 报错及解决7. 说明1. 关闭防火墙和SelinuxLinux的防火墙是咱们新手的噩梦#xff0c;很多情况会出现能ping通#xff0c;但是访问不了Web页…阅读目录1. 关闭防火墙和Selinux2. 安装所需环境JDK,Zookeeper3. 下载Kafka 1.0.0版本4. 配置Kafka5. 启动Kafka并验证6. 报错及解决7. 说明1. 关闭防火墙和SelinuxLinux的防火墙是咱们新手的噩梦很多情况会出现能ping通但是访问不了Web页面。所以开始就干掉它1.1 关闭防火墙[rootlocalhost ~]# /etc/init.d/iptables stopiptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Flushing firewall rules: [ OK ]iptables: Unloading modules: [ OK ]1.2 开机自动关闭防火墙[rootlocalhost ~]# chkconfig iptables off1.3 查看Selinux状态[rootlocalhost ~]# sestatusSELinux status: enabledSELinuxfs mount: /sys/fs/selinuxSELinux root directory: /etc/selinuxLoaded policy name: targetedCurrent mode: enforcingMode from config file: enforcingPolicy MLS status: enabledPolicy deny_unknown status: allowedMax kernel policy version: 281.4 关闭selinux[rootlocalhost ~]# vim /etc/selinux/config修改 SELINUXdisabled注永久开启-改成SELINUXenforcing2. 安装所需环境JDK,Zookeeper3. 下载Kafka 1.0.0版本注创建一个kafka消息目录主要存放kafka消息[rootlocalhost /]# mkdir /usr/local/kafka[rootlocalhost /]# mkdir /usr/local/kafka/kafka-logs3.1 下载Kafka 1.0.0版本[rootlocalhost /]# cd /usr/local/kafka[rootlocalhost kafka]# wget https://mirrors.tuna.tsinghua.edu.cn/apache/kafka/1.0.0/kafka_2.12-1.0.0.tgz3.2 解压[rootlocalhost kafka]# tar -zxvf kafka_2.12-1.0.0.tgz4.配置并启动Kafka4.1 进入到config目录[rootlocalhost kafka]# cd /usr/local/kafka/kafka_2.12-1.0.0/config4.2 备份并修改server.properties[rootlocalhost config]# cp server.properties server.properties.bak[rootlocalhost config]# vim server.properties修改标红的三行,# Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements.  See the NOTICE file distributed with# this work for additional information regarding copyright ownership.# The ASF licenses this file to You under the Apache License, Version 2.0# (the License); you may not use this file except in compliance with# the License.  You may obtain a copy of the License at##    http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an AS IS BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.# see kafka.server.KafkaConfig for additional details and defaults############################# Server Basics ############################## The id of the broker. This must be set to a unique integer for each broker.broker.id0############################# Socket Server Settings ############################## The address the socket server listens on. It will get the value returned from# java.net.InetAddress.getCanonicalHostName() if not configured.#   FORMAT:#     listeners listener_name://host_name:port#   EXAMPLE:#     listeners PLAINTEXT://your.host.name:9092#listenersPLAINTEXT://:9092port9092#这是你本机的ip地址host.name172.17.44.141# returned from java.net.InetAddress.getCanonicalHostName().#advertised.listenersPLAINTEXT://your.host.name:9092num.network.threads3# The send buffer (SO_SNDBUF) used by the socket serversocket.send.buffer.bytes102400socket.request.max.bytes104857600############################# Log Basics ############################## A comma seperated list of directories under which to store log fileslog.dirs/usr/local/kafka/kafka-logs# The default number of log partitions per topic. More partitions allow greater# parallelism for consumption, but this will also result in more files across# the brokers.num.partitions1....4.3 配置Kafka环境变量[rootlocalhost config]# vim /etc/profile在文本末最后一行添加如下代码export KAFKA_HOME/usr/local/kafka/kafka_2.12-1.0.0export PATH$KAFKA_HOME/bin:$PATH保存退出。4.4 使配置立即生效[rootlocalhost config]# source /etc/profile5. 启动Kafka并验证5.1 启动zookeeper服务[rootlocalhost config]# /usr/local/zookeeper/zookeeper-3.4.11/bin/zkServer.sh start5.2 进入到kafka的bin目录[rootlocalhost config]# cd /usr/local/kafka/kafka_2.12-1.0.05.3 启动kafka[rootlocalhost kafka_2.12-1.0.0]# bin/kafka-server-start.sh config/server.properties 5.4 验证[rootlocalhost kafka_2.12-1.0.0]# jps3584 Jps3299 QuorumPeerMainl3519 Kafka5.5 关闭kafka命令[rootlocalhost kafka_2.12-1.0.0]# bin/kafka-server-stop.sh6. 报错及解决启动kafka报错[rootlocalhost kafka_2.12-1.0.0]# bin/kafka-server-start.sh config/server.properties Exception in thread main java.lang.UnsupportedClassVersionError: kafka/Kafka : Unsupported major.minor version 52.0解决请查看kafka对应的jdk版本此次选用JDK版本为1.87. 说明说明本次使用操作系统CentOS 6.8 64位Kafka版本1.0.0JDK版本1.8.0_144
http://www.pierceye.com/news/235225/

相关文章:

  • 不会代码 怎么做网站兴义网络推广
  • 综合电子商务型企业网站怎么做网站的网盘
  • ucenter使用自己做的网站房地产新闻时事热点
  • 企业网站备案 过户电商运营视频教程
  • 做网站运营这工作怎么样北京网站优化价格
  • 河南专业网站建设网站怎么做高权重
  • 国内大型电子网站建设做网站时怎么透明化
  • 微应用和微网站的区别手机网站开发的目的
  • 网站ico开一个网站建设公司好
  • wordpress中文站cn外贸网站怎么换域名
  • 淘宝客怎么做直播网站吗学校网站建设发展概况分析
  • 广州网站外贸推广建筑师必看的16部纪录片
  • 深圳网站建设平台网站右侧浮动广告
  • 中英文网站源码浙江东南网架公司
  • 个人备案网站放什么资料培训
  • html做企业门户网站提供设计的网站
  • 成都三合一网站建设成年s8视频加密线路
  • 做网站购买服务器如何优化网络
  • 企业公司网站 北京怎样用前端知识制作企业网站
  • 精湛的赣州网站建设襄阳哪里有做网站的
  • 拿了网赌代理后怎样做自己的网站河南最新消息今天
  • 北京最大的网站开发公司中山市企业网站seo营销工具
  • 苏州营销型网站建设方案哪些网站做的比较好的
  • 淘宝上买的建设网站能退款吗app怎么查网站备案
  • 电子商务网站开发与设计报告专业网站建设公司兴田德润怎么样
  • 如何建立p2p网站win2003怎么做网站
  • 免费网页设计制作网站建筑公司愿景口号大全
  • 个人可以做网站维护吗专业团队电脑壁纸
  • 东营专业网站建设公司排行鞍山市人力资源招聘信息网
  • 郑州网站建设蝶动小公司使用的网站开发