随笔分类 -  LNMP架构

摘要:[root@web prometheus]# yum install nginx -y [root@web prometheus]# cat /etc/nginx/conf.d/prometheus.conf server { #填写绑定证书的域名 server_name xxxx.com; lis 阅读全文
posted @ 2021-11-24 18:32 泽野 阅读(1019) 评论(0) 推荐(0)
摘要:需求: 1.使用m01做跳板机,ssh也要优化 2.web两台机器关闭外网,做共享上网 3.m01开启防火墙,只允许本机连接2222端口 1.环境准备 主机 外网ip 内网ip m01 10.0.0.61 172.16.1.61 web01 172.16.1.7 web03 172.16.1.9 2 阅读全文
posted @ 2021-11-13 15:02 泽野 阅读(172) 评论(0) 推荐(0)
摘要:一、LNMP搭建 1.官方源安装nginx 1)配置官方源 [root@web01 ~]# vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/ 阅读全文
posted @ 2021-11-13 14:59 泽野 阅读(120) 评论(0) 推荐(0)
摘要:在使用linux系统时,默认安装的国外yum源(软件仓库)下载比较慢,所以一般使用的阿里云yum源。但是前不久遇到阿里云出现问题,无法下载软件。一直以为是我的机器出现问题,最后才发现是阿里云的问题,现在特别整理了一下华为源和网易源的替换 阿里云yum源 #1、备份 [root@qls ~]# mv 阅读全文
posted @ 2021-09-24 10:18 泽野 阅读(525) 评论(0) 推荐(0)
摘要:PHP安装 #Centos7 安装源 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtat 阅读全文
posted @ 2021-09-24 10:09 泽野 阅读(43) 评论(0) 推荐(0)
摘要:1. epol源安装 [root@web01 ~]# yum install -y nginx [root@web01 ~]# rpm -qa nginx nginx-1.16.1-1.el7.x86_64 2.官方源安装 1)配置官方源 [nginx-stable] name=nginx stab 阅读全文
posted @ 2021-09-24 10:07 泽野 阅读(48) 评论(0) 推荐(0)