![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Centos6.8
文章平均质量分 55
Centos6.8 学习记录笔记
卩杉
勤学如早春之苗,不见其增,日有所长。辍学如磨刀之石,不见其减,日有所损。
展开
-
Centos 6 无法使用 yum 解决办法
文章目录yum错误错误1错误2错误原因解决办法方法1一键修复方法2手动修复关闭 fastestmirrors备份 repo替换为阿里云 Vault 镜像yum错误错误1Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arc转载 2021-03-06 12:48:03 · 882 阅读 · 3 评论 -
centos6.8 校对系统时间
我的 centos6.8 的时间一直不对????其实校对方法很简单。编辑配置文件vim /etc/sysconfig/clock ZONE="Asia/Shanghai"UTC=falseARC=false2.建连接文件ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime3. 安装 ntpyum install ntp校对时间ntpdate ntp1.aliyun.com设置硬件时间和系统时间一致并原创 2020-10-16 23:46:36 · 448 阅读 · 0 评论 -
centos6.8 下安装 nginx
获取 nginx编译安装启用与停止001 获取 nginx可以从以下获取链接中下载需要的版本,可以直接使用 wget 获取。获取链接例如wget http://nginx.org/download/nginx-1.19.3.tar.gz下载完成后利用 tar -zxvf 命令解压。编译安装安装依赖包由于 nginx 中的功能是模块化的,模块依赖一些软件包,如 zlib 库 才能用,所以在安装 nginx 前,需要先完成依赖软件包的安装,常用的是 perl-devel,zl.原创 2020-10-13 10:45:56 · 346 阅读 · 1 评论 -
php 7.x 编译安装 Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
今天在编译安装 php7.2.28 时出现如下问题:[root@localhost /usr/local/php7.2.28/etc]#service php-fpm stopGracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?解决办法:先用 kill 办法关闭 ph...原创 2020-03-19 14:07:28 · 3046 阅读 · 0 评论 -
php 7 编译安装 WARNING: Nothing matches the include pattern '/usr/local/php7.2.28/etc/php-fpm.d/*.conf'
今天在编译安装 php 7.2.28 时出现了这个错误:[19-Mar-2020 11:49:56] WARNING: Nothing matches the include pattern '/usr/local/php7.2.28/etc/php-fpm.d/*.conf' from /usr/local/php7.2.28/etc/php-fpm.conf at line 125.[19...原创 2020-03-19 11:57:53 · 751 阅读 · 0 评论 -
centos6.8 添加系统服务
简述许多 Linux 系统服务都可以通过 service 命令来进行控制,比如 service network reload 命令等,其中 service 命令第 1 个参数是服务的名字,第 2 个参数是具体的操作(如 start,restart 等)。在 centos 系统中,service 命令实际是调用了 /etc/init.d 目录中的 shell 脚本,也就是说,如下 2 条命令其实...原创 2020-03-05 17:27:34 · 2503 阅读 · 0 评论 -
centos 6.8 开放端口
有时候为了特定的服务我们需要开放特定的端口,可以通过配置 iptables 防火墙,实现开发端口的访问。比如开放 80 端口:iptables -I INPUT -p tcp --dport 80 -j ACCEPT参数说明:参数说明-I INPUT表示 INPUT(外部访问规则)中插入一条规则-p tcp指定数据包的协议(tcp ,udp ,icmp 等)...原创 2020-03-04 23:37:50 · 2152 阅读 · 0 评论