随笔分类 -  Linux

摘要:(单个进程)查看最大文件句柄数 调参 vi /etc/security/limits.conf # End of file root soft nofile 1000000 root hard nofile 1000000 * soft nofile 1000000 * hard nofile 10 阅读全文
posted @ 2022-01-20 20:39 陈彦斌 阅读(68) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-01-20 15:57 陈彦斌 阅读(0) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash i=1 while [ $i -le 100000000 ] do mysql -uroot -proot -h127.0.0.1 test -e "insert into student_test (name,createTime) values ('student$i', 阅读全文
posted @ 2021-11-02 09:26 陈彦斌 阅读(120) 评论(0) 推荐(0) 编辑
摘要:官网地址:https://docs.docker.com/compose/install/ 1、 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$ 阅读全文
posted @ 2021-10-28 23:09 陈彦斌 阅读(557) 评论(0) 推荐(0) 编辑
摘要:DocketMQ安装RabbitMQ 地址:https://hub.docker.com/ 拉取镜像 docker pull rabbitmq:3.8.12-management-alpine 运行 docker run -d --hostname rabbit_host1 --name yb_ra 阅读全文
posted @ 2021-06-05 23:28 陈彦斌 阅读(162) 评论(0) 推荐(0) 编辑
摘要:查看内存使用情况 ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%mem | head 查看启动java项目 jps 查看内存 free 阅读全文
posted @ 2021-04-19 20:15 陈彦斌 阅读(46) 评论(0) 推荐(0) 编辑
摘要:编辑文件 vi /etc/docker/daemon.json 将内容修改如下 { "registry-mirrors": ["http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn"] } 重新加载配置信息及重启 Dock 阅读全文
posted @ 2021-01-29 09:42 陈彦斌 阅读(233) 评论(0) 推荐(0) 编辑
摘要:查看防火墙 firewall-cmd --state 停止防火墙 systemctl stop firewalld.service 禁止防火墙开机启动 systemctl disable firewalld.service 开启防火墙 systemctl start firewalld.servic 阅读全文
posted @ 2021-01-10 23:40 陈彦斌 阅读(76) 评论(0) 推荐(0) 编辑
摘要:下载依赖 yum -y install epel-release yum -y update 安装Erlang yum -y install erlang socat 测试安装成功 erl -version 安装wget yum -y install wget 安装RabbitMQ wget htt 阅读全文
posted @ 2021-01-06 11:38 陈彦斌 阅读(146) 评论(0) 推荐(0) 编辑
摘要:在阿里云服务器Centos7中安装mysql5.7,解压数据库初始化后,报错 ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or di 阅读全文
posted @ 2020-12-26 13:38 陈彦斌 阅读(471) 评论(0) 推荐(0) 编辑
摘要:vim /etc/sysconfig/iptables 阅读全文
posted @ 2020-11-17 11:06 陈彦斌 阅读(131) 评论(0) 推荐(0) 编辑
摘要:Linux部署Tomcat 为了节省时间,这里不带着大家一步步部署Tomcat了,不会的到我另一篇博客中学习:点我直达 修改Tomcat配置 切换: /opt/apache-tomcat-7.0.106/conf 编辑: vim server.xml <Context docBase="/opt/" 阅读全文
posted @ 2020-11-09 22:14 陈彦斌 阅读(2823) 评论(0) 推荐(0) 编辑
摘要:导读 上一集我们已经学会了SpringBoot整合RocketMQ点我直达,今天我们来搭建双主双从高性能MQ服务集群。 简介 主从架构 Broker角色,Master提供读写,Slave只支持读,Consumer不用配置,当Master不可用或者繁忙的时候,Consumer会自动切换到Slave节点 阅读全文
posted @ 2020-10-30 23:07 陈彦斌 阅读(773) 评论(0) 推荐(0) 编辑
摘要:查看防火墙状态 systemctl status firewalld 出现:Active: inactive (dead),代表防火墙已关闭 临时关闭防火墙 重启后,防火墙会重新开启 systemctl stop firewalld.service 永久关闭防火墙 systemctl disable 阅读全文
posted @ 2020-10-11 22:25 陈彦斌 阅读(440) 评论(0) 推荐(0) 编辑
摘要:导读 之前用的都是SVN,由于工作需要用到Git,求人不如求己,技多不压身,多学一项技能,未来就少求别人一次,系统的学一遍,自己搭建一整套环境,自动化部署(自动发版),代码质量检测等等(为啥不用docker搭建环境呢,个人平时比较忙,暂未学习docker,过段时间会学docker相关,也会写相应博文 阅读全文
posted @ 2020-09-20 00:57 陈彦斌 阅读(3132) 评论(4) 推荐(8) 编辑
摘要:安装 下载 官网:http://maven.apache.org/download.cgi 解压 tar -zxvf apache-maven-3.6.3-bin.tar.gz -C /usr/local/ 修改环境变量 vim /etc/profile 配置文件生效:source /etc/pro 阅读全文
posted @ 2020-09-13 20:00 陈彦斌 阅读(411) 评论(0) 推荐(0) 编辑
摘要:查看端口 netstat -tlun 查看端口被那个服务占用 netstat -tunlp |grep 8080 阅读全文
posted @ 2020-09-12 18:07 陈彦斌 阅读(187) 评论(0) 推荐(0) 编辑
摘要:下载包 yum install -y ntpdate 同步网络时间 ntpdate 0.asia.pool.ntp.org 若上面的时间服务器不可用,也可以改用如下服务器进行同步: time.nist.gov time.nuri.net 0.asia.pool.ntp.org 1.asia.pool 阅读全文
posted @ 2020-08-02 19:43 陈彦斌 阅读(1232) 评论(0) 推荐(0) 编辑
摘要:介绍 背景 当表的个数达到了几百千万张表时,众多的业务模块都访问这个数据库,压力会比较大,考虑对其进行分库 当表的数据达到几千万级别,在做很多操作都比较吃力,考虑对其进行分库或分表 数据切分(sharding)方案 数据的切分(Sharding)根据其切分规则的类型,可以分为两种切分模式: 垂直切分 阅读全文
posted @ 2020-06-20 00:52 陈彦斌 阅读(794) 评论(2) 推荐(1) 编辑
摘要:搭建MyCat环境时出现 错误: 代理抛出异常错误: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: node04: 无法识别当前的主机名 node04 解决办法 1.修改 阅读全文
posted @ 2020-06-19 22:42 陈彦斌 阅读(601) 评论(0) 推荐(0) 编辑