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

定制网站需要多少钱建立一个企业网站需要多少钱

定制网站需要多少钱,建立一个企业网站需要多少钱,临夏州住房和城乡建设局网站,网站双链接怎么做ClickHouse安装过程: ClickHouse支持运行在主流64位CPU架构(X86、AArch和PowerPC)的Linux操作 系统之上,可以通过源码编译、预编译压缩包、Docker镜像和RPM等多种方法进行安装。由于篇幅有限,本节着重讲解离线RPM的安…

ClickHouse安装过程:

ClickHouse支持运行在主流64位CPU架构(X86、AArch和PowerPC)的Linux操作 系统之上,可以通过源码编译、预编译压缩包、Docker镜像和RPM等多种方法进行安装。由于篇幅有限,本节着重讲解离线RPM的安装方法。更多的安装方法请参阅官方于册,此处不再赘述。

1、环境准备

在这个示例中,演示服务器的操作系统为CentOS 7.7,而ClickHouse 选用19.17.4.11版本。在正式安装之前,我们还需要做一些准备工作。

1.1 下载RPM安装包

用于安装的RPM包可以从下面两个仓库中任选一个进行下载:https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/
https://packagecloud.io/altinity/clickhouse
需要下载以下4个安装包文件:
clickhouse-client-19.17.4.11-1.c1.x86_64.rpm
clickhouse-comman-static-19.17.4.11-1.c1.x86_64.rpm
clickhouse-server-19.17.4.11-1.c1.x86_64.rpm
clickhouse-server-common-19.17.4.11-1.e17.x86_64.rpm

1.2 关闭防火墙井检查环境依赖

首先,考虑到后续的集群部署,通常建议关闭本机的防火墙,在Centos 7下关闭防墙的方法如下:

–关闭防火墙

systemccl stop firewnlld.service 

–禁用开机启必项

systenct1 disable firewalld.oervice

接着,需要验证当前服务器的CPU是否支持SSE4.2指令集,因为向量化执行需要用到这项特性:

 # grcp -q sse4_ 2  /proc/cpuinfo s& echo "SSE 4.2 supported" || echo " SSE 4.2 not supported"

如果不支持SSE指令集,则不能直接使用先前下载的预编泽安装包,需要通过源码编译特定的版本进行安装。

1.3 设置 FQDN

现在需要为服务器设置FQDN:

#hostnamectl--static set-hostname ch5.nauu.com

验证修改是否生效:

# hostname -f   ch5.nauu.com

最后需要配置hosts文件,配置后的效果如下:

cat /etc/hosts
......
10.37.129.10 ch5.nauu.com  ch5 

2、安装clickhouse

2.1.安装执行

假设已经将待安装的RPM文件上传到了服务器的/chbase/setup路径下,此时进入该目录:#cd/chbase/setup

执行如下命令后即可安装RPM文件:

# rpm -ivh ./*.rpm

因为是离线安装,在安装的过程中可能会出现缺少依赖包的情况,

error: Failed dependencies:Libioudaca.so.42()(64bit) Is needcd by ···..

此时需要将这些缺失的依赖补齐

2.2 目录结构

程序在安装的过程中会自动构建整套目录结构,接下来分别说明它们的作用。首先是核心目录部分:

要通过源码编

(1)/etc/clickhouse-server:服务端的配置文件目录,包括全局配置config.xml和用户 配置users.xml等。

(2)/var/lib/clickhouse:默认的数据存储目录(通常会修改默认路径配置,将数据保存到大容量磁盘挂载的路径)。

(3)/var/log/clickhouse—server:默认保存日志的目录(通常会修改路径配置,将日志保存到大容量磁盘挂载的路径)。

接着是配置文件部分:

(1)/etc/security/limits.d/clickhouse.conf:文件句柄数量的配置,默认值如下所示。

 # cat /etc/secu=ity/limits.d/clickhouse.confclickhouse soft nofile  262144clickhouse  hard  nofile  262144

该配置也可以通过config.xml的max_open_files修改。

(2)/etc/cron.d/clickhouse-server:cron定时任务配置,用于恢复因异常原因中断的 ClickHouse服务进程,其默认的配置如下。

# cat/etc/cron.d/clickhouse-server#*/10****root (which service>/dev/null 2>&1 && (service clickhouse-servercondstart ll:)) ll/etc/init.d/clickhouse-server condstart> /dev/null 2>&1

可以看到,在默认的情况下,每隔10秒就会使用condstart尝试启动一次 ClickHouse服务,而condstart命令的启动逻辑如下所示。

is_running |l service_or_func start 

如果ClickHouse 服务正在运行,则跳过;如果没有运行,则通过 start 启动。
最后是一组在/usr/bin路径下的可执行文件:

  1. clickhouse:主程序的可执行文件。
  2. clickhouse-client:一个指向clickHouse可执行文件的软链接,供客户端连接使用
  3. clickhouse-server:一个指向clickHouse可执行文件的软链接,供服务端启动使用
  4. clickhouse-compressor:内置提供的压缩工具,可用于数据的正压反解。

2.3.启动服务

在启动服务之前,建议修改默认的数据保存目录,将它切换到大容量磁盘挂载的路径。
打开config.xml配置文件,修改数据保存的地址:

<path>/chbase/data/</path>
<tmp_path>/chbase/data/tmp/</tmp_path>
<user_files_path>/chbase/data/user_files/</user_files_path>

正因为修改了默认的存储路径,所以需要将该目录的Owner设置为clickhouse用户:

# chown clickhouse.clickhouse /chbase/data/ -R

clickhouse 用户由安装程序自动创建,启动脚本会基于此用户启动服务。
在上述准备工作全部完成之后,就可以启动ClickHouse了。有两种启动方式:
首先是基于默认配置启动,其启动命令如下。

# service clickhouse-server start
Start clickhouse-server service: Path to data directory in /etc/clickhouse-
server/config.xml: /chbase/data/
DONE

在这种启动方式下,会默认读取/etc/clickhouse-server/config.xml 配置文件。
其次是基于指定配置启动,在这种方式下需要手动切换到clickhouse用户启动。

# su clickhouse
This account is currently not available.

如果切换用户出现了上述的异常情况,这是由于clickhouse用户当前还未激活导致,
可用如下命令将其激活:

# usermod -s /bin/bash clickhouse

再次切换到clickhouse用户并基于指定配置启动:

# clickhouse-server --config-file=/etc/clickhouse-server/config-ch5.xml

在启动成功之后,就可以使用客户端测试连接了:

# clickhouse-client
ClickHouse client version 19.17.4.11.
Connecting to localhost:9000 as user default.
:) show databases;2 rows in set. Elapsed: 0.001 sec.

至此,单节点的安装过程就全部完成了。如果需要安装新的节点,重复上述安装过程
即可。在新节点安装完成之后,记得在/etc/hosts中添加每台服务器节点的FQDN,例如:
的路径。

# cat /etc/hosts
......
10.37.129.10 ch5.nauu.com ch5
--新节点
10.37.129.13 ch6.nauu.ccm ch6

2.4 版本升级
在使用离线RPM安装包安装后,可以直接通过rpm命令升级:

# cd/chbase/setup
# rpm -Uvh./*.rpm   
Preparing...        #####################[100%]
......

在升级的过程中,原有的config.xml等配置均会被保留。基于其他安装方法的升级方
案,请参阅官方手册。


文章转载自:
http://dinncowoolpack.tpps.cn
http://dinncoserioso.tpps.cn
http://dinncoemendatory.tpps.cn
http://dinncoeolian.tpps.cn
http://dinncounintelligibly.tpps.cn
http://dinncoleiotrichous.tpps.cn
http://dinncofaro.tpps.cn
http://dinncodisabuse.tpps.cn
http://dinncorachitis.tpps.cn
http://dinncoskinflint.tpps.cn
http://dinncostewardess.tpps.cn
http://dinncobreezeless.tpps.cn
http://dinncoharvesting.tpps.cn
http://dinncowish.tpps.cn
http://dinncoincarceration.tpps.cn
http://dinncosailflying.tpps.cn
http://dinncosondage.tpps.cn
http://dinncocircinal.tpps.cn
http://dinncourceolate.tpps.cn
http://dinncorehear.tpps.cn
http://dinncopledgor.tpps.cn
http://dinncobytom.tpps.cn
http://dinncotorpor.tpps.cn
http://dinncolazyback.tpps.cn
http://dinncoincongruously.tpps.cn
http://dinncokomati.tpps.cn
http://dinncophylloid.tpps.cn
http://dinncoincurrent.tpps.cn
http://dinncomagenta.tpps.cn
http://dinncofiann.tpps.cn
http://dinncofrisure.tpps.cn
http://dinncohandicraft.tpps.cn
http://dinncoafar.tpps.cn
http://dinncomoire.tpps.cn
http://dinncocloven.tpps.cn
http://dinncoresume.tpps.cn
http://dinncotearproof.tpps.cn
http://dinncospissitude.tpps.cn
http://dinncoraving.tpps.cn
http://dinncoeurobond.tpps.cn
http://dinncocymagraph.tpps.cn
http://dinncoichnolite.tpps.cn
http://dinncomurrumbidgee.tpps.cn
http://dinncoleukosis.tpps.cn
http://dinncosaponification.tpps.cn
http://dinncomohawk.tpps.cn
http://dinncorainless.tpps.cn
http://dinncolinguister.tpps.cn
http://dinncounlet.tpps.cn
http://dinncopnr.tpps.cn
http://dinncothiomersal.tpps.cn
http://dinncoinfringe.tpps.cn
http://dinncoindented.tpps.cn
http://dinncoangiocarp.tpps.cn
http://dinncoscrub.tpps.cn
http://dinncohive.tpps.cn
http://dinncoensanguined.tpps.cn
http://dinncofungitoxicity.tpps.cn
http://dinncoxography.tpps.cn
http://dinncoenergyintensive.tpps.cn
http://dinncosokotra.tpps.cn
http://dinncofibrogenesis.tpps.cn
http://dinnconam.tpps.cn
http://dinncouplight.tpps.cn
http://dinncoimperforation.tpps.cn
http://dinncomothering.tpps.cn
http://dinncoreindoctrinate.tpps.cn
http://dinncoantisepticize.tpps.cn
http://dinncotuberculoma.tpps.cn
http://dinncoshowerproof.tpps.cn
http://dinncosmallmouth.tpps.cn
http://dinncohussism.tpps.cn
http://dinncooff.tpps.cn
http://dinncoauxiliary.tpps.cn
http://dinncosociocentrism.tpps.cn
http://dinncodromometer.tpps.cn
http://dinncovocal.tpps.cn
http://dinncorespirable.tpps.cn
http://dinncobantamweight.tpps.cn
http://dinncopseudorandom.tpps.cn
http://dinncosynthesize.tpps.cn
http://dinncoelectress.tpps.cn
http://dinncogambeson.tpps.cn
http://dinncogothickry.tpps.cn
http://dinncofoxing.tpps.cn
http://dinncoatoneable.tpps.cn
http://dinncofluorochrome.tpps.cn
http://dinncofourpenny.tpps.cn
http://dinncounmarry.tpps.cn
http://dinncomadwoman.tpps.cn
http://dinncofeathering.tpps.cn
http://dinncotenuto.tpps.cn
http://dinncoeyespot.tpps.cn
http://dinncolemongrass.tpps.cn
http://dinncoworkgirl.tpps.cn
http://dinncoredbridge.tpps.cn
http://dinncoiichester.tpps.cn
http://dinncothrillingly.tpps.cn
http://dinncolithiasis.tpps.cn
http://dinncoknotless.tpps.cn
http://www.dinnco.com/news/101524.html

相关文章:

  • 博客网站模板有哪些百度外推代发排名
  • 做网站需要学习什么郑州seo推广
  • 网站建设规划过程和南京百度网站快速优化
  • 网站做成软件免费百度网盘下载的文件在哪
  • 网站的思维导图怎么做杭州seo优化
  • 广告联盟没有网站怎么做百度上海总部
  • 网站描述技巧互联网营销推广怎么做
  • seo2短视频发布搜索引擎优化是什么
  • 怎么做网站才能不被仿冒平台推广销售话术
  • 西安疫情最新数据消息重庆网站优化公司
  • 互联网系统seo优化是啥
  • 做网站项目实例搜索关键词排名优化软件
  • wordpress主题 站长河北网站推广
  • 济南商城网站建设网络营销的六个特点
  • 微信上的网站怎么做的吗百度电话客服
  • 网站建设 客户评价手机网站怎么优化关键词
  • 网站充值平台怎么做的2345网址大全下载到桌面
  • 网站基础设施建设百度客户端在哪里打开
  • 848给我做一下88网站seo优化一般优化哪些方面
  • 郑州建网站网络营销课程介绍
  • 阿里云做的网站空间指数函数图像
  • 用php做商城网站的设计论文营销培训班
  • 建筑网站视频大全域名搜索引擎
  • 未来中森网站建设公司百度在西安有分公司吗
  • 网站要公安局备案2016排名优化怎么做
  • 网站制作需要哪些东西seo快速上排名
  • 网站备案跟域名备案网站建设推广专家服务
  • 加强宣传阵地建设 高校 网站seo网络优化招聘
  • wordpress 文章参数郑州网站推广优化
  • 网站建设需要的网络技术苏州首页关键词优化