随笔分类 - LNMP架构
摘要:[root@web prometheus]# yum install nginx -y [root@web prometheus]# cat /etc/nginx/conf.d/prometheus.conf server { #填写绑定证书的域名 server_name xxxx.com; lis
阅读全文
摘要:需求: 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
阅读全文
摘要:一、LNMP搭建 1.官方源安装nginx 1)配置官方源 [root@web01 ~]# vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/
阅读全文
摘要:在使用linux系统时,默认安装的国外yum源(软件仓库)下载比较慢,所以一般使用的阿里云yum源。但是前不久遇到阿里云出现问题,无法下载软件。一直以为是我的机器出现问题,最后才发现是阿里云的问题,现在特别整理了一下华为源和网易源的替换 阿里云yum源 #1、备份 [root@qls ~]# mv
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号