会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
vae_test_yu
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
10
下一页
2023年5月9日
centos7设置nginx开机自启
摘要: 3、配置nginx开机启动 切换到/lib/systemd/system/目录,创建nginx.service文件vim nginx.service # cd /lib/systemd/system/ # vim nginx.service 文件内容如下: [Unit] Description=ng
阅读全文
posted @ 2023-05-09 17:55 test_yu
阅读(949)
评论(0)
推荐(0)
2023年4月10日
Docker容器执行su命令报错su: cannot open session: Permission denied 解决方法
摘要: 1、先检查su命令权限是否正确,执行如下命令 ll /etc/pam.d/su 如果现实如图,则说明权限方面没问题,若您的执行结果与我的不一样,需调整权限。 [root@blog-tag-gg ~]# ll /etc/pam.d/su -rw-r--r-- 1 root root 540 2月 3
阅读全文
posted @ 2023-04-10 14:03 test_yu
阅读(2309)
评论(0)
推荐(0)
2022年10月13日
删除文件及子目录下某类文件
摘要: find . -name "*.zip" -type ffind . -name "*.txt" -type f -print -exec rm -rf {} \; . : 表示在当前目录下 -name "*.zip" 表示查找所有后缀为txt的文件 -type f 表示文件类型为一般正规文件 -p
阅读全文
posted @ 2022-10-13 14:43 test_yu
阅读(58)
评论(0)
推荐(0)
2022年7月13日
centos7提示cannot create temp file for here-document: No space left on device解决方案
摘要: 一、使用 df -h 命令查看,发现/根目录的剩余空间为0。总共系统盘容量才50G。 du -h --max-depth=1 |grep 'G' |sort lsof -n |grep delete 可见 /dev/mapper/centos-root 目录 也就是/根目录 空间已使用完毕 二、使用
阅读全文
posted @ 2022-07-13 11:48 test_yu
阅读(969)
评论(0)
推荐(0)
2022年6月28日
离线安装docker
摘要: 1. 下载docker安装包 官方地址:https://download.docker.com/linux/static/stable/x86_64/docker-20.10.16.tgz 2. 解压缩 # tar -zxvf docker-20.10.16.tgz 3. 解压的docker文件夹全
阅读全文
posted @ 2022-06-28 16:41 test_yu
阅读(368)
评论(0)
推荐(0)
2022年6月27日
docker安装部署clickhouse
摘要: # docker部署clickhouse # 安装clickhouse-server ## 创建目录 ```shell #宿主机创建目录,用于存放配置文件、数据、日志(我是放在/data/docker/clickhouse下) sudo mkdir -p /data/docker/clickhous
阅读全文
posted @ 2022-06-27 10:44 test_yu
阅读(871)
评论(0)
推荐(0)
docker安装rabbitmq
摘要: #安装rabbitmq #启动 docker run -d -v /data/rabbitmq/data:/var/lib/rabbitmq -p 5672:5672 -p 15672:15672 --name rabbitmq --restart=always --hostname myRabbi
阅读全文
posted @ 2022-06-27 10:42 test_yu
阅读(40)
评论(0)
推荐(0)
2022年6月23日
解决centos没有netstat
摘要: yum install net-tools
阅读全文
posted @ 2022-06-23 14:56 test_yu
阅读(90)
评论(0)
推荐(0)
2022年6月22日
docker打包和加载镜像
摘要: 1. 拉取镜像(要能连网) docker pull 镜像名称 注意:docker pull tomcat为例子,若不指定版本,则拉取最新版本,指定版本:docker pull tomcat8.5.92.查看已经拉取的镜像 (版本号=TAG) 2 查看镜像 docekr images 3. docke
阅读全文
posted @ 2022-06-22 13:43 test_yu
阅读(2518)
评论(0)
推荐(0)
2022年6月11日
centos7开启/禁用ping功能
摘要: vi /etc/sysctl.conf net.ipv4.icmp_echo_ignore_all=0 # (0表示允许,1表示禁止) sysctl -p #刷新
阅读全文
posted @ 2022-06-11 17:39 test_yu
阅读(376)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
公告