docker安装zookeeper
发表于|更新于
|浏览量:
人之气质,由于天生,本难改变,惟读书可变化气质。一一曾国藩
1.
1 | docker pull zookeeper |
- 单机版
1 | docker run -d -p 2181:2181 --name some-zookeeper --restart always zookeeper |
- 查看注册的服务
1 | docker exec -it d5c6f857cd88 bash |
1 | ./bin/zkCli.sh |
相关推荐
2020-08-03
gitlab、jenkins、tomcat内存限制
我发现我的服务器配置有点低。。。装的东西有点多,于是我进行了一次限制内存占用 Gitlab限制内存: 1vim /etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rbunicorn[‘worker_timeout’] = 60###! Minimum worker_processes is 2 at this moment###! See https://gitlab.com/gitlab-org/gitlab-foss/issues/18771unicorn[‘worker_processes’] = 2 然后重启 1gitlab-ctl reconfigure 然后是jenkins内存限制 1vim /etc/sysconfig/jenkins JENKINS_JAVA_OPTIONS=”-Djava.awt.headless=true -XX:MaxPermSize=512m -Djava.awt.headless=true” 重启j...
2022-03-12
nginx中alias
对未来的真正慷慨,是把一切都献给现在。——加缪 前两天想在本地搭一个nginx实现静态资源代理,且访问 1http://localhost/static_resources/head_1645512000625.jpg 时能映射到下面这个路径 1D:\work\static\data\local\head_1645512000625.jpg 找了半天,要么是说配置location /static_resources/ {}这里不加杠和加杠之类的 我这个nginx是官网下的最新版,就是不好使,最后找到了alias关键字解决: 配置如下: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type a...
2022-04-12
mysql大小写踩坑
不求苍天俯就我的美意,但求永远恣意挥洒。——惠特曼《自我之歌》 设置了mysqld下的配置 12[mysqld]lower_case_table_names = 1 lower_case_table_names的官方文档: https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names 描述为: If set to 0, table names are stored as specified and comparisons are case-sensitive. If set to 1, table names are stored in lowercase on disk and comparisons are not case-sensitive. If set to 2, table names are stored as given but compared in lowercase. This option also applie...
2023-11-29
gitlab迁移后报错OpenL::cipher::CipherError
大言必自招尤,小心终是寡过。——弘一大师 每次一点gitlab里的保存就500 弄了半天,总算弄好了,方式是采用重置命令 1234~] gitlab-rails console> ApplicationSetting.first.delete> ApplicationSetting.first=> nill
2023-07-10
docker-compose.yml安装mysql
给自己一点时间,别害怕重新开始。——威尔·鲍温 我们参考 https://github.com/docker-library/docs/tree/master/mysql 编写一个docker-compose.yml来安装mysql 123456789101112131415# Use root/example as user/password credentialsversion: '3.1'services: db: image: mysql # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password # (this is just an example, not intended to be a production configuration)...
2023-02-10
centos磁盘排查
不怕人家说说有缺点,才会不断进步——丁玲 今天发现服务器磁盘满了,使用du命令排查,首先找到根目录 1du -h --max-depth=1 / 然后发现/usr下面最大,接着找/usr目录下 1du -h --max-depth=1 /usr 发现/usr/local目录最大,我们挨个排查下去,发现是jpom的历史构建产物占用空间太多,去Jpom里删除就好了

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog