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

上海十大b2c网站建设seo建站教学

上海十大b2c网站建设,seo建站教学,asp网站开发的开发环境,邯郸有没有专门做写字楼的网站目录 一、准备工作 1、确定防火墙处于关闭状态 2、CentOS 取消打开文件数限制 3、安装依赖 4、CentOS取消SELINUX 二、单机安装 2.1、下载安装 2.2、安装这4个rpm包 2.3、修改配置文件 2.4、启动服务 2.5、关闭开机自启 2.6、使用Client连接server 一、准备工作 1…

目录

一、准备工作

1、确定防火墙处于关闭状态

2、CentOS 取消打开文件数限制

3、安装依赖

4、CentOS取消SELINUX

二、单机安装

2.1、下载安装

2.2、安装这4个rpm包

2.3、修改配置文件

2.4、启动服务

2.5、关闭开机自启

2.6、使用Client连接server


一、准备工作

1、确定防火墙处于关闭状态

[root@hallo102 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@hallo102 ~]#

2、CentOS 取消打开文件数限制

在 /etc/security/limits.conf 文件的末尾加入以下内容

* soft nofile 65536 
* hard nofile 65536 
* soft nproc 131072 
* hard nproc 131072 
  • 第一列是限制的用户和用户组
  • soft软限制,hard硬限制
  • nofile打开文件数,nproc用户进程数

/etc/security/limits.d/20-nproc.conf文件的末尾加入以下内容

* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072

退出当前用户,重启登录,ulimit -a查看打开文件数和用户进程数是否更改

[root@hallo102 ~]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 11687
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65536
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 131072
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[root@hallo102 ~]#

3、安装依赖

[root@hallo102 ~]# yum install -y libtool

[root@hallo102 ~]# yum install -y *unixODBC*

4、CentOS取消SELINUX

[root@hallo102 ~]# vim /etc/selinux/config

SELINUX=disabled

修改完重启服务器

二、单机安装

官网:https://clickhouse.tech/

下载地址:https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/

2.1、下载安装

需要以下四个rpm包:

clickhouse-client-21.7.3.14-2.noarch.rpm
clickhouse-common-static-21.7.3.14-2.x86_64.rpm
clickhouse-common-static-dbg-21.7.3.14-2.x86_64.rpm
clickhouse-server-21.7.3.14-2.noarch.rpm

2.2、安装这4个rpm包

[root@hallo102 clickhouse]# rpm -ivh *.rpm

[root@hallo102 clickhouse]# ll
总用量 938164
-rw-r--r-- 1 root root     78074 11月 16 21:40 clickhouse-client-21.7.3.14-2.noarch.rpm
-rw-r--r-- 1 root root 174283244 11月 16 21:40 clickhouse-common-static-21.7.3.14-2.x86_64.rpm
-rw-r--r-- 1 root root 786208040 11月 16 21:40 clickhouse-common-static-dbg-21.7.3.14-2.x86_64.rpm
-rw-r--r-- 1 root root    101969 11月 16 21:40 clickhouse-server-21.7.3.14-2.noarch.rpm
[root@hallo102 clickhouse]# rpm -ivh *.rpm

2.3、修改配置文件

[root@hallo102 clickhouse]# cd /etc/clickhouse-server/
[root@hallo102 clickhouse-server]# chmod 777 config.xml
[root@hallo102 clickhouse-server]# ls
config.d  config.xml  users.d  users.xml
[root@hallo102 clickhouse-server]# vim config.xml

<listen_host>0.0.0.0</listen_host>的注释打开,这样的话才能让ClickHouse被除本机之外的服务器访问

这个配置文件中,ClickHouse一些默认路径配置:

  • 数据文件路径:<path>/var/lib/clickhouse/</path>
  • 日志文件路径:<log>/var/log/clickhouse-server/clickhouse-server.log</log>

2.4、启动服务

[root@hallo102 clickhouse-server]# systemctl start clickhouse-server

或者

[root@hallo102 clickhouse-server]# clickhouse start

[root@hallo102 clickhouse-server]# systemctl status clickhouse-server
● clickhouse-server.service - ClickHouse Server (analytic DBMS for big data)Loaded: loaded (/etc/systemd/system/clickhouse-server.service; enabled; vendor preset: disabled)Active: active (running) since 六 2024-11-16 21:59:16 CST; 3s agoMain PID: 2343 (clckhouse-watch)Tasks: 157CGroup: /system.slice/clickhouse-server.service├─2343 clickhouse-watchdog --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid└─2346 /usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid11月 16 21:59:16 hallo102 systemd[1]: Started ClickHouse Server (analytic DBMS for big data).
11月 16 21:59:16 hallo102 systemd[1]: Starting ClickHouse Server (analytic DBMS for big data)...
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Processing configuration file '/etc/clickhouse-server/config.xml'.
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Logging trace to /var/log/clickhouse-server/clickhouse-server.log
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Processing configuration file '/etc/clickhouse-server/config.xml'.
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/config.xml'.
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Processing configuration file '/etc/clickhouse-server/users.xml'.
11月 16 21:59:17 hallo102 clickhouse-server[2343]: Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'.
[root@hallo102 clickhouse-server]#

2.5、关闭开机自启

[root@hallo102 clickhouse-server]# systemctl disable clickhouse-server
Removed symlink /etc/systemd/system/multi-user.target.wants/clickhouse-server.service.
[root@hallo102 clickhouse-server]#

2.6、使用Client连接server

[root@hallo102 clickhouse-server]# clickhouse-client -m
ClickHouse client version 21.7.3.14 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 21.7.3 revision 54449.hallo102 :) show databases;SHOW DATABASESQuery id: 29827428-607c-42d3-84f7-24333732908c┌─name────┐
│ default │
│ system  │
└─────────┘2 rows in set. Elapsed: 0.006 sec.hallo102 :)
http://www.hrbkazy.com/news/50307.html

相关文章:

  • 价格低的自动挡汽车落实20条优化措施
  • 免费开商城网站扬州网站推广公司
  • 镇江网站网站建设seo流量增加软件
  • 住建厅官方网北京seo实战培训班
  • 自己做网站能关联支付宝吗广州高端网站建设公司
  • 做围棋死活题的网站如何搜索关键词
  • b站24小时直播间seo入门版
  • 百度推广做网站什么价位营销图片素材
  • 奕腾网站建设软文营销推广
  • 政务公开和网站建设情况百度的竞价排名是哪种方式
  • 涞水网站建设网站seo方案案例
  • Centos建网站必须域名seo优化软件免费
  • 小网站模板高端网站建设的公司
  • 备案网址查询seo营销外包公司
  • 天津网站开发商丘网站优化公司
  • 6.网站开发流程是什么网站推广是什么意思
  • 兰溪市建设局官方网站加强服务保障满足群众急需ruu7
  • 建设网站深圳市百度信息流推广教程
  • 专业网站建设哪里有飞猪关键词排名优化
  • wordpress mayashop关键词优化排名
  • 购买了域名之后怎么做网站上海网站seo诊断
  • 银川网站建设哪家优质国内新闻热点事件
  • 如何做网站的优化百度代运营推广
  • 有些网站下方只有版权没有ICP中视频自媒体平台注册官网
  • 爱有声小说网站捡个校花做老婆优秀网页设计公司
  • 武汉免费建站模板一句话宣传自己的产品
  • 关于asp.net 和mysql网站建设的毕业论文外文翻译独立站seo推广
  • 金融集团网站建设方案百度关键词优化多少钱
  • 中国纪检监察报总编seo初级入门教程
  • 洛阳市涧西区建设局网站盘多多网盘资源库