摘要: 1 安装nginx yum install -y gcc make pcre-devel zlib-devel openssl-develwget https://nginx.org/download/nginx-1.20.1.tar.gztar -zxvf nginx-1.20.1.tar.gzc 阅读全文
posted @ 2023-11-13 14:02 Sinsen柳 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 【精选】【Grafana】基于CentOS 7系统安装部署Grafana服务端_源码安装granafa centos 编译-CSDN博客 #修改主机名(可选)hostnamectl set-hostname grafanabashhostnamectl 显示:Static hostname: gra 阅读全文
posted @ 2023-11-03 15:57 Sinsen柳 阅读(209) 评论(0) 推荐(0) 编辑
摘要: # 创建用户git,指定登录shell为Bash,-d指定家目录默认/home/git,-m如果指定的家目录不存在,则创建该目录# 踩坑:-r 不分配登录shell和家目录useradd -s /bin/bash -d -m git #编辑 /etc/sudoers 文件以允许 git 用户在执行 阅读全文
posted @ 2023-11-01 17:00 Sinsen柳 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 报错: Host ‘127.0.0.1’ is not allowed to connect to this MySQL server vi /etc/my.cnf 注释掉: #skip-name-resolve 2 报错:Access denied for user 'root'@'local 阅读全文
posted @ 2023-10-18 17:57 Sinsen柳 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #关闭防火墙和SElinux安全模式:systemctl stop firewalldsystemctl disable firewalldsetenforce 0getenforce会显示:Permissive 关闭防火墙 systemctl stop iptablessystemctl disa 阅读全文
posted @ 2023-09-05 15:50 Sinsen柳 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1 yum install --downloadonly : #下载yumdownloadonly插件yum install yum-plugin-downloadonly #yum 下载rpm包到指定目录,只下载不安装yum install --downloadonly --downloaddir 阅读全文
posted @ 2023-08-04 15:31 Sinsen柳 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 写一个脚本,本地自带nginx1.24源码包,然后自动完成安装,并加入system管理。并设置开启自启动,并启动ng。并完成对80端口的curl测试,返回状态码200打印启动正常的消息: #!/bin/bash # 安装依赖 sudo apt-get update sudo apt-get inst 阅读全文
posted @ 2023-08-04 15:23 Sinsen柳 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 创建一个文件夹,把四个配置文件放进去,然后运行:docker compose -f -d nacos.yml up mysql-schema.sql nacos.confnacos.envnacos.yml mysql-schema.sql 内容: /* * Copyright 1999-2018 阅读全文
posted @ 2023-07-26 13:49 Sinsen柳 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 安装Docker和Docker Compose: 安装预置:sudo yum updateyum install python3-pipsudo yum group install "Development Tools"sudo yum install epel-releasesudo yum in 阅读全文
posted @ 2023-07-11 18:07 Sinsen柳 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 安装Docker和Docker Compose: 安装预置:sudo yum updateyum install python3-pipsudo yum group install "Development Tools"sudo yum install epel-releasesudo yum in 阅读全文
posted @ 2023-07-11 16:00 Sinsen柳 阅读(31) 评论(0) 推荐(0) 编辑