随笔分类 -  Linux

Linux
摘要:安装前可以先检查一下有没有,再选择是否要安装 卸载 Nginx # 删除除了配置文件以外的所有文件。 sudo apt-get remove nginx nginx-common # 删除所有与nginx有关的东西,包括配置文件。 sudo apt-get purge nginx nginx-com 阅读全文
posted @ 2022-09-30 13:32 VipSoft 阅读(320) 评论(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 阅读(4516) 评论(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 阅读(1455) 评论(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 阅读(370) 评论(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 阅读(362) 评论(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 阅读(3710) 评论(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 阅读(185) 评论(0) 推荐(0) 编辑
摘要:同一物理盘进行扩容(非挂载),首先在虚机内将硬盘空间扩大, Hyper-V 需要将检查点删除 查看物理卷和卷组,并将物理卷加入到卷组 #将剩余空间添加到逻辑卷 /dev/centos/root lvextend -l +100%FREE /dev/centos/root #同步到文件系统,实现对根目 阅读全文
posted @ 2022-03-30 13:47 VipSoft 阅读(479) 评论(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 阅读(341) 评论(0) 推荐(0) 编辑
摘要:Nginx -t 时报 (3: The system cannot find the path specified) 原因:路径中有文件夹是中文,Nginx 全路径,不能包含中文 阅读全文
posted @ 2021-08-06 10:55 VipSoft 阅读(1840) 评论(0) 推荐(0) 编辑
摘要:在Nginx配置文件nginx.conf中加入如下配置。(index.html根据实际页面配置) 增加:try_files $uri $uri/ /index.html; #解决页面刷新404问题 server { listen 8080; server_name localhost; locati 阅读全文
posted @ 2021-07-24 21:33 VipSoft 阅读(1988) 评论(2) 推荐(1) 编辑
摘要:Kubernetes(K8S) 常用命令 Kubernetes(K8S) 常用命令 Docker 常用命令 systemctl restart docker #重启 Docker docker images #查看镜像文件 REPOSITORY #镜像的仓库源 TAG #镜像的标签 IMAGE ID 阅读全文
posted @ 2021-05-31 16:26 VipSoft 阅读(78) 评论(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 阅读(206) 评论(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 阅读(621) 评论(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 阅读(2017) 评论(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 阅读(104) 评论(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 阅读(235) 评论(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 阅读(750) 评论(0) 推荐(0) 编辑
摘要:前置条件 Docker 安装 Elasticsearch ### 部署服务端 skywalking-oap-server docker pull apache/skywalking-oap-server:8.1.0-es7 docker run --name skywalking-oap-serve 阅读全文
posted @ 2021-05-21 14:46 VipSoft 阅读(944) 评论(0) 推荐(0) 编辑
摘要:为了Skywalking 准备 elasticsearch 至少 需要2G内存 docker pull elasticsearch:7.9.3 docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \ -e "discovery.type 阅读全文
posted @ 2021-05-19 19:40 VipSoft 阅读(309) 评论(0) 推荐(0) 编辑