随笔分类 -  linux

摘要:报错日志 2019/07/25 08:31:31 [crit] 15929#15929: accept4() failed (24: Too many open files) 2019/07/25 08:31:31 [crit] 15930#15930: accept4() failed (24: 阅读全文
posted @ 2022-12-26 13:27 Star-Hitian 阅读(68) 评论(0) 推荐(0) 编辑
摘要:阿里源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/C 阅读全文
posted @ 2022-12-24 21:33 Star-Hitian 阅读(80) 评论(0) 推荐(0) 编辑
摘要:磁盘性能测试 什么是IOPS?IOPS与吞吐、读写块大小、时延有什么关系? IOPS(Input/Output Per Second)即每秒IO操作的次数(读写次数)。 读写块大小、IOPS、吞吐量、写入次数及时延的关系公式为: 吞吐量=IOPS*读写块大小;IOPS=读写次数/任务整体时延 例如, 阅读全文
posted @ 2022-12-07 21:42 Star-Hitian 阅读(2207) 评论(0) 推荐(0) 编辑
摘要:文件存放位置:(共三处) /etc/systemd/system/ /usr/lib/systemd/system /lib/systemd/system 阅读全文
posted @ 2022-11-03 17:33 Star-Hitian 阅读(103) 评论(0) 推荐(0) 编辑
摘要:/etc/init.d/httpd cat > /etc/init.d/httpd << EOF #!/bin/bash ### chkconfig: 12345 80 90 function start_http(){ /usr/local/apache/bin/apachectl start } 阅读全文
posted @ 2022-06-01 20:11 Star-Hitian 阅读(220) 评论(0) 推荐(0) 编辑
摘要:在linux中我们自己添加的环境变量有时候会出现重复的现象,我们可以通过在/etc/profile中添加一行脚本来解决 vim /etc/profile # 最后添加如下信息 export PATH=$(echo $PATH | tr : "\n"| sort | uniq | tr "\n" :) 阅读全文
posted @ 2021-08-12 14:12 Star-Hitian 阅读(2291) 评论(0) 推荐(0) 编辑
摘要:1、利用vi编辑器打开 /etc/bash.bashrc文件(需要root权限) sudo vi /etc/bash.bashrc 2、找到文件中的下列代码 #enable bash completion in interactive shells #if ! shopt -oq posix; th 阅读全文
posted @ 2021-08-10 10:55 Star-Hitian 阅读(49) 评论(0) 推荐(0) 编辑
摘要:基础环境 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # free -m total used free shared buff/cache available Mem: 7566 493 1663 8 5409 67 阅读全文
posted @ 2021-08-09 14:22 Star-Hitian 阅读(143) 评论(0) 推荐(0) 编辑
摘要:# 查看分区情况 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom xvda 202:0 0 100G 0 disk ├─xvda1 202:1 0 500M 0 part /boot └─xvda2 202 阅读全文
posted @ 2021-08-09 11:22 Star-Hitian 阅读(43) 评论(0) 推荐(0) 编辑
摘要:具体操作 # 基础环境 # 旧jenkins # cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) # jenkins 家目录及配置 # ls /home/jenkins-master/ backup jenkins jenki 阅读全文
posted @ 2021-08-03 16:57 Star-Hitian 阅读(222) 评论(0) 推荐(0) 编辑
摘要:Confluence 迁移 由于我新服务器和老服务器的配置几乎一样,所以就直接开干了。,,,整完也是可以正常启动的 步骤一 # 拷贝旧Confluence上 /var/atlassian/ 文件夹下的数据到新服务器上 rsync -artvz -e 'ssh' /var/atlassian/ aws 阅读全文
posted @ 2021-07-29 18:54 Star-Hitian 阅读(425) 评论(0) 推荐(0) 编辑
摘要:监控脚本 修改配置文件,添加如下行 在server端测试,看能不能获取到数据 成功获取到了数据,接下来配置zabbix界面配置-->主机-->监控项-->创建监控项主要是键值[ ]里面写要监控的网址,然后点击更新就行了! 触发器:过期时间小于10则报警 阅读全文
posted @ 2019-03-06 14:31 Star-Hitian 阅读(2156) 评论(0) 推荐(0) 编辑
摘要:为方便本地yum的管理,一般都是在公司局域网内搭建本地yum仓库,实现公司内部快速安装常用软件。 步骤如下: 1、搭建要实现本地yum管理的软件,测试该软件搭建成功与否; 2、定制rpm包及其相关依赖; 3、搭建本地yum源 4、配置客户端yum,实现局域网取包安装。 首先声明:该本地yum仓库中的 阅读全文
posted @ 2017-12-10 18:28 Star-Hitian 阅读(1280) 评论(0) 推荐(0) 编辑