随笔分类 -  Linux

Linux
摘要:1. 安装要求 在开始之前,部署Kubernetes集群机器需要满足以下几个条件: 一台或多台机器,操作系统 CentOS7.x-86_x64 硬件配置:2GB或更多RAM,2个CPU或更多CPU,硬盘30GB或更多 可以访问外网,需要拉取镜像,如果服务器不能上网,需要提前下载镜像并导入节点 禁止s 阅读全文
posted @ 2022-10-13 17:00 VipSoft 阅读(1249) 评论(0) 推荐(0) 编辑
摘要:前一次 init 时,master ip 写错了,导致init 失败,修改IP后再次执行时,报 kubeadm init 失败,port is in use Last login: Thu Oct 13 15:11:27 2022 from 172.16.0.66 [root@k8smaster ~ 阅读全文
posted @ 2022-10-13 16:04 VipSoft 阅读(413) 评论(0) 推荐(0) 编辑
摘要:安装前可以先检查一下有没有,再选择是否要安装 卸载 Nginx # 删除除了配置文件以外的所有文件。 sudo apt-get remove nginx nginx-common # 删除所有与nginx有关的东西,包括配置文件。 sudo apt-get purge nginx nginx-com 阅读全文
posted @ 2022-09-30 13:32 VipSoft 阅读(327) 评论(0) 推荐(0) 编辑
摘要:一、安装MySQL 1. 删除Mysql 数据库 sudo apt autoremove --purge mysql-server-* sudo apt remove mysql-server sudo apt autoremove mysql-server sudo apt remove mysq 阅读全文
posted @ 2022-08-25 13:18 VipSoft 阅读(4851) 评论(2) 推荐(0) 编辑
摘要:同步阿里云时间 ntpdate ntp1.aliyun.com 使用watch命令:周期性的执行一个命令,并全屏显示。 watch -n 1 date 即可:每1秒刷新date命令。 # 格式 watch [option] command watch -n 1 date # -n: --interv 阅读全文
posted @ 2022-08-17 14:47 VipSoft 阅读(1743) 评论(2) 推荐(2) 编辑
摘要:IIS 配置目录浏览 在目录下 Web.config 下添加一句: <directoryBrowse enabled="true"/> <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticC 阅读全文
posted @ 2022-06-07 14:59 VipSoft 阅读(410) 评论(2) 推荐(0) 编辑
摘要:ECS 挂载 OSS,等同于在ECS 上使用内网的 Bucket 域名,不需要收取流量费用,减少接口代码的编写。 CentOS系统 安装 wget http://gosspublic.alicdn.com/ossfs/ossfs_1.80.6_centos7.0_x86_64.rpmyum inst 阅读全文
posted @ 2022-04-18 14:39 VipSoft 阅读(382) 评论(0) 推荐(0) 编辑
摘要:磁盘挂载后,启动报错 Unable to create tempDir. java.io.tmpdir is set to /tmp [2022-03-30 17:12:06.596] WARN [main] AbstractApplicationContext.java:558 - Excepti 阅读全文
posted @ 2022-03-30 17:25 VipSoft 阅读(3909) 评论(0) 推荐(0) 编辑
摘要:1. df -h Disk label type 值为dos表示MBR分区,值为gpt表示GPT分区。 [root@iZuf66gcq71y5hlfv02w6aZ ~]# yum install -y parted [root@iZuf66gcq71y5hlfv02w6aZ ~]# yum inst 阅读全文
posted @ 2022-03-30 15:13 VipSoft 阅读(204) 评论(0) 推荐(0) 编辑
摘要:同一物理盘进行扩容(非挂载),首先在虚机内将硬盘空间扩大, Hyper-V 需要将检查点删除 查看物理卷和卷组,并将物理卷加入到卷组 #将剩余空间添加到逻辑卷 /dev/centos/root lvextend -l +100%FREE /dev/centos/root #同步到文件系统,实现对根目 阅读全文
posted @ 2022-03-30 13:47 VipSoft 阅读(586) 评论(0) 推荐(0) 编辑
摘要:1. Docker开启远程访问,注意端口不要用默认的,防止被攻击 [root@localhost ~]# vi /usr/lib/systemd/system/docker.service 修改 # 修改该行-注意端口不要用默认的 2375 # ExecStart=/usr/bin/dockerd 阅读全文
posted @ 2022-03-09 17:55 VipSoft 阅读(354) 评论(0) 推荐(0) 编辑
摘要:Nginx -t 时报 (3: The system cannot find the path specified) 原因:路径中有文件夹是中文,Nginx 全路径,不能包含中文 阅读全文
posted @ 2021-08-06 10:55 VipSoft 阅读(1992) 评论(0) 推荐(0) 编辑
摘要:在Nginx配置文件nginx.conf中加入如下配置。(index.html根据实际页面配置) 增加:try_files uriuri/ /index.html; #解决页面刷新404问题 server { listen 8080; server_name localhost; locati 阅读全文
posted @ 2021-07-24 21:33 VipSoft 阅读(2000) 评论(2) 推荐(1) 编辑
摘要:Kubernetes(K8S) 常用命令 Kubernetes(K8S) 常用命令 Docker 容器中镜像导出/导入 Docker 常用命令 systemctl restart docker #重启 Docker docker images #查看镜像文件 REPOSITORY #镜像的仓库源 T 阅读全文
posted @ 2021-05-31 16:26 VipSoft 阅读(89) 评论(0) 推荐(0) 编辑
摘要:将文件传到Linux 服务器/opt 目录中 http://nginx.org/download/nginx-1.20.1.tar.gz 安装 #切换到 /opt目录下 cd /opt # 安装依赖 yum -y install gcc zlib pcre-devel zlib-devel open 阅读全文
posted @ 2021-05-31 15:12 VipSoft 阅读(214) 评论(0) 推荐(0) 编辑
摘要:【不建议使用 Docker 的形式部署,后期添加端口映射很麻烦】 安装 Nginx # 获取nginx 镜像 docker pull nginx:1.20 # 运行容器(用于复制文件到宿主机做映射) docker run -d --name nginx nginx:1.20 #创建宿主机目录,用于映 阅读全文
posted @ 2021-05-31 13:23 VipSoft 阅读(631) 评论(0) 推荐(0) 编辑
摘要:安装 filebeat-7.9.3(与Elasticsearch版本一致) 考虑到Elasticsearch 比较费硬盘空间,所以目前项目中只上传error的日志。详细日志还是去具体服务器查看(没有专门运维) 普通安装: 上传并解压filebeat-7.9.3-linux-x86_64.tar.gz 阅读全文
posted @ 2021-05-27 09:20 VipSoft 阅读(2069) 评论(0) 推荐(0) 编辑
摘要:首先在虚机内将硬盘空间扩大,Hyper-V 需要将检查点删除 查看物理卷和卷组,并将物理卷加入到卷组 lvextend -l +100%FREE /dev/centos/root #将剩余空间添加到逻辑卷 /dev/centos/root xfs_growfs /dev/centos/root #同 阅读全文
posted @ 2021-05-26 17:03 VipSoft 阅读(112) 评论(0) 推荐(0) 编辑
摘要:ELK 版本因为 前面 Elasticsearch 用的 7.9.3 版本,所以 kibana-7.9.3、logstash-7.9.3 都用 7.9.3 版本 安装配置 Elasticsearch Docker 安装 Elasticsearch 修改Elasticsearch配置,可以到容器内部修 阅读全文
posted @ 2021-05-25 13:49 VipSoft 阅读(255) 评论(0) 推荐(0) 编辑
摘要:下载源码包:https://archive.apache.org/dist/skywalking/8.1.0/ -- 创建存放目录 mkdir -p /opt/skywalking -- 进入目录 cd /opt/skywalking -- 下载agentjar wget https://archi 阅读全文
posted @ 2021-05-21 14:54 VipSoft 阅读(769) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示