摘要: 正文: php官网:https://www.php.net/ 搜狐镜像源:http://mirrors.sohu.com/ (推荐,国内源下载速度嗖嗖的) 1.php编译安装前解决依赖包 yum -y install epel-release yum -y install gcc gcc-c++ m 阅读全文
posted @ 2020-06-30 21:27 charseki 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1、备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum 阅读全文
posted @ 2020-06-30 11:20 charseki 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 今天在centos7服务器上用yum的时候发现,yum命令不能用了,不管用yum什么命令都会出现如下提示: 1、错误提示一: One of the configured repositories failed (Unknown),and yum doesn't have enough cached 阅读全文
posted @ 2020-06-30 11:17 charseki 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 背景介绍: Web服务器: 1、Apache 2、Nginx 以上是常见的两种web服务器,这里我选择Nginx,因为安装和配置都比较简洁,功能也强大,满足日常的反向代理,负载均衡等功能。 正文: Nginx服务器的编译安装: # 首先是安装Nginx所需要的一些依赖包 yum install -y 阅读全文
posted @ 2020-06-30 01:55 charseki 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 背景介绍: 准备3台服务器(虚拟机环境),一台打算当做Web服务器(Nginx),另外2台备用。考虑到对物理机性能的占用,故采用命令行启动的模式。 正文: 1、修改开机模式为命令模式 3台服务器分别取名为server001、server002、server003,都安装Centos7后,修改配置文件 阅读全文
posted @ 2020-06-30 00:12 charseki 阅读(179) 评论(0) 推荐(0) 编辑