随笔分类 -  linux

摘要:1)安装rpm-build软件包 [root@localhost~]# yum -y install rpm-build 2)生成rpmbuild目录结构 [root@localhost~]# rpmbuild -ba nginx.spec //制作rpm包,但是没有配置文件会报错,报错也需要敲,会 阅读全文
posted @ 2022-08-19 13:31 fengjian1585 阅读(630) 评论(0) 推荐(0)
摘要:redhat 终端提示证书过期 Broadcast message from root@localhost.localdomain Your trial is EXPIRED and no VALID license. Phone Number: 400-706-1825 E-mail Addres 阅读全文
posted @ 2022-08-17 08:44 fengjian1585 阅读(165) 评论(0) 推荐(0)
摘要:删除每行开头或者末尾的空格和制表符 [root@localhost ~]# awk '{ sub(/^[ \t]+/, ""); print }' content.txt 删除指定列中 super 和 dirv awk '{ sub(/dirver\/|super\//, ""); print }' 阅读全文
posted @ 2022-07-22 11:17 fengjian1585 阅读(768) 评论(0) 推荐(0)
摘要:一般命令 raw #发送一个原始的IPMI请求,并且打印回复信息。 Lan #配置网络(lan)信道(channel) chassis #查看底盘的状态和设置电源 event #向BMC发送一个已经定义的事件(event),可用于测试配置的SNMP是否成功 mc #查看MC(Management C 阅读全文
posted @ 2022-07-11 10:29 fengjian1585 阅读(1056) 评论(0) 推荐(0)
摘要:1. 查看cpu是否支持kvm [root@sorl1 ~]$ grep -E 'vmx|svm' /proc/cpuinfo 2. 查看yum kvm [root@sorl1 ~]# yum list | grep kvm libvirt-daemon-kvm.x86_64 1.2.17-13.e 阅读全文
posted @ 2022-07-03 13:20 fengjian1585 阅读(146) 评论(0) 推荐(0)
摘要:在RHEL,注册系统使用Red Hat订阅管理,使用您的客户Portal的用户名和密码: # subscription-manager register --username="USERNAME" --password="PASSWORD" 为RHEL系统找到授权池包含这些通道: # subscri 阅读全文
posted @ 2022-06-29 16:45 fengjian1585 阅读(390) 评论(0) 推荐(0)
摘要:NTP 安装及配置 1、统一时区,在所有节点(controller、compute01、compute02)上执行 # ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 注:安装时若有选择正确时区,可忽略上述设置 2、在控制节点 cont 阅读全文
posted @ 2022-06-29 16:29 fengjian1585 阅读(744) 评论(0) 推荐(0)
摘要:升级gcc版本,依次执行如下命令: yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutilsscl enable devtoolset-9 阅读全文
posted @ 2022-06-28 11:22 fengjian1585 阅读(701) 评论(0) 推荐(0)
摘要:生产随机字符串 [root@localhost harbor]# openssl rand -base64 16 Pkxoo3CC7pTD222nxTL6ucRSA== 阅读全文
posted @ 2022-05-12 14:43 fengjian1585 阅读(423) 评论(0) 推荐(0)
摘要:1. 备份ifcfg-tns33 [root@jboss1 ~]# cd /etc/sysconfig/network-scripts/ [root@jboss1 network-scripts]# mv ifcfg-ens33 ifcfg-ens33.bak [root@jboss1 networ 阅读全文
posted @ 2022-03-29 12:39 fengjian1585 阅读(91) 评论(0) 推荐(0)
摘要:https://ghproxy.com/ 阅读全文
posted @ 2022-02-22 13:33 fengjian1585 阅读(288) 评论(0) 推荐(0)
摘要:Centos7安装NPM 1.安装gcc yum install gcc gcc-c++ 2.下载node国内镜像(推荐) wget https://npm.taobao.org/mirrors/node/v10.14.1/node-v10.14.1-linux-x64.tar.gz 3.解压并重命 阅读全文
posted @ 2022-02-18 10:07 fengjian1585 阅读(173) 评论(0) 推荐(0)
摘要:1. yum 安装ffmpeg 依赖软件 yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel python-devel 阅读全文
posted @ 2022-01-24 15:07 fengjian1585 阅读(510) 评论(0) 推荐(0)
摘要:curl -v -u 'admin:123456' --upload-file kafka_2.11-1.1.0.jar http://10.0.0.1:8081/nexus/repository/maven-releases/org/apache/kafka/1.1.0/kafka_2.11-1. 阅读全文
posted @ 2021-12-10 15:42 fengjian1585 阅读(319) 评论(0) 推荐(0)
摘要:zookeer 中查询 canal信息 ls /otter/canal:canal的根目录 ls /otter/canal/cluster:整个canal server的集群列表 ls /otter/canal/destinations:destination的根目录 get /otter/cana 阅读全文
posted @ 2021-12-10 13:15 fengjian1585 阅读(86) 评论(0) 推荐(0)
摘要:在线添加新磁盘 #扫描 SCSI总线并添加 SCSI 设备 for host in $(ls /sys/class/scsi_host) ; do echo "- - -" > /sys/class/scsi_host/$host/scan; done #重新扫描 SCSI 总线 for scsi_ 阅读全文
posted @ 2021-11-08 12:12 fengjian1585 阅读(73) 评论(0) 推荐(0)
摘要:同步只增加的文件,已有的文件不同步 rsync -torpvg --ignore-existing --progress test root@192.168.15.198:/root/"--ignore-existing"是更新目标端不存在的文件。 使用"--existing"选项使得只更新目标端已 阅读全文
posted @ 2021-09-29 09:51 fengjian1585 阅读(192) 评论(0) 推荐(0)
摘要:xfs硬盘格式inode空间占比(默认为5%) xfs文件系统动态扩容inode空间占比为10%(后续可以根据存储情况调整) $ xfs_growfs -m 10 /minio 摘自:https://blog.51cto.com/zyrs/2747677 阅读全文
posted @ 2021-09-15 11:12 fengjian1585 阅读(866) 评论(0) 推荐(0)
摘要:cratedb监控 使用 Docker(和 JMX 监控)启动 Prometheus、Grafana 和 CrateDB 为了运行我们的工具,我们将使用 Docker。我们将使用docker-compose构建我们的容器,它非常方便地定义和运行多容器 Docker 应用程序。 Docker-comp 阅读全文
posted @ 2021-08-10 09:12 fengjian1585 阅读(139) 评论(0) 推荐(0)
摘要:最近刚上线了一款社交项目,运行十多天后(运营持续每天推量),发现问题:系统OOM(资源不能被释放)导致服务器频繁且长时间FGC导致服务器CPU持续飚高日志中内存溢出:java.lang.OutOfMemoryError: Java heap space程序十分卡顿,严重影响用户使用从以下方面,为大家 阅读全文
posted @ 2021-02-26 11:41 fengjian1585 阅读(813) 评论(0) 推荐(0)