会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
狄成
上一页
1
2
3
4
5
6
7
···
12
下一页
centos6根分区扩容,非lvm
摘要: 1、关闭虚拟机,删除里面的快照,将磁盘扩容 2、根分区为sda3,开机后输入fdisk /dev/sda,d,3删除sda3,然后n,p,3,w创建sda3,扇区的开始位置要一致 3、growpart /dev/sda 3 重启,如果没有命令执行yum install cloud-utils-gro
阅读全文
posted @ 2021-04-13 14:50 狄成
阅读(450)
评论(0)
推荐(0)
编辑
批量替换文件名,如替换文件名中ip
摘要: 将文件名后缀为gz,并且ip包含231的文件改为ip为253的gz文件 find -name "*.gz" |for i in *;do mv $i `echo $i |sed 's/192.168.1.231/192.168.1.253/g'`;done
阅读全文
posted @ 2021-03-15 11:15 狄成
阅读(126)
评论(0)
推荐(0)
编辑
oracle11g安装及设置开机启动
摘要: https://www.cnblogs.com/AllIhave/p/12804805.html https://www.cnblogs.com/Noul/p/14072139.html
阅读全文
posted @ 2021-01-11 18:03 狄成
阅读(130)
评论(0)
推荐(0)
编辑
gitlab备份与恢复
摘要: 备份 执行命令gitlab-rake gitlab:backup:create,备份文件默认生成在/var/opt/gitlab/backups,可以更改/etc/gitlab/gitlab.rb指定新的备份路径 恢复 安装相同版本的gitlab,可以到https://mirrors.tuna.ts
阅读全文
posted @ 2020-12-31 12:22 狄成
阅读(240)
评论(0)
推荐(0)
编辑
mysql报error24 too many open file解决方法
摘要: 看到 too many open file第一反应就是修改/etc/security/limits.conf文件,改完重启无效 然后改my.cnf,【mysqld】下增加行open_files_limit = 102400,重启无效 编辑/etc/systemd/system/multi-user.
阅读全文
posted @ 2020-12-22 15:58 狄成
阅读(942)
评论(0)
推荐(0)
编辑
nginx源码编译安装
摘要: 1、下载安装源码wget http://nginx.org/download/nginx-1.16.1.tar.gz 2、安装依赖环境 yum install gcc gcc-c++ automake autoconf libtool make 3、安装prce、zlib。前者为了重写rewrite
阅读全文
posted @ 2020-11-30 15:23 狄成
阅读(253)
评论(0)
推荐(0)
编辑
centos6升级内核
摘要: wget https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm --import RPM-GPG-KEY-elrepo.org wget https://www.elrepo.org/elrepo-release-6.el6.elrepo.noarch.
阅读全文
posted @ 2020-10-28 11:09 狄成
阅读(157)
评论(0)
推荐(0)
编辑
centos7启动盘制作
摘要: 1,准备一个8gU盘。 2.iso系统镜像文件。 3.下载UltraISO软件制作启动盘(要9.7版本以上)。 4、运行UltraISO软件 5、在UltraISO软件中打开刚下载的Centos系统安装文件 6、开始制作U盘启动盘 选择你的U盘,点击写入 制作完成
阅读全文
posted @ 2020-09-17 13:36 狄成
阅读(108)
评论(0)
推荐(1)
编辑
sed匹配字符串并将匹配行的后几行注释
摘要: sed -i '/匹配字符串/,+4 s/^/#/' 文件名 +4表示匹配行和下面4行,一共5行注释 去掉注释 sed -i '/匹配字符串/,+4 s/^#*//' 文件名
阅读全文
posted @ 2020-09-04 10:43 狄成
阅读(1770)
评论(0)
推荐(0)
编辑
cmd下调用xshell登录linux服务器
摘要: "C:\Program Files (x86)\Ucenter\Xshell\Xshell.exe" -url ssh://root:123456@192.168.1.16:22
阅读全文
posted @ 2020-08-31 15:41 狄成
阅读(674)
评论(0)
推荐(1)
编辑
上一页
1
2
3
4
5
6
7
···
12
下一页
导航
博客园
首页
联系
订阅
管理
公告