![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
东生--是我
这个作者很懒,什么都没留下…
展开
-
通过nginx日志统计服务器请求QPS
查看服务器QPS这里使用的nginx,cd到nginx的access.log目录,查看日志文件。统计当前时间每秒的请求数。日志格式:bash127.0.0.1 - - [12/Nov/2020:15:40:29 +0800] "GET /index.html HTTP/2.0" 200 11564 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240原创 2020-12-11 00:04:21 · 2749 阅读 · 0 评论 -
Centos7 利用crontab定时执行任务及配置方法
crond是什么?crond 和crontab是不可分割的。crontab是一个命令,常见于Unix和类Unix的操作系统之中,用于设置周期性被执行的指令。该命令从标准输入设备读取指令,并将其存放于“crontab”文件中,以供之后读取和执行。该词来源于希腊语chronos(χρόνος),原意是时间。而crond正是它的守护进程。cron服务是一个定时执行的服务,可以通过crontab 命令添加或者编辑需要定时执行的任务。linux定时任务分为两种1)系统自身轮训的任务,比如定时(5天或者一周)备转载 2020-09-17 09:35:15 · 1251 阅读 · 0 评论 -
centos7 安装redis并配置php-redis
一、下载官网:https://redis.io/download 我们下载 Stable 稳定版# cd /mydata# wget http://download.redis.io/releases/redis-5.0.5.tar.gz 最后出现100%[==============================================================&...转载 2020-02-18 22:22:20 · 330 阅读 · 0 评论 -
nginx日常报错信息
二、一次Nignx的502页面的错误记录(1)错误页面显示错误日志:2017/07/17 17:32:57 [error] 29071#0: *96 recv() failed (104: Connection reset by peer) while reading response header from upstream,client: 101.226.125.118, server...转载 2019-10-25 17:47:24 · 2254 阅读 · 0 评论 -
centos 7 nginx配置
nginx.conf#user nobody;worker_processes 2;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_con...原创 2019-10-18 14:29:14 · 111 阅读 · 0 评论 -
linux 安装mongodb和php扩展
参考官网red hat系统的安装方法使用yum安装mongodb4.2vim /etc/yum.repos.d/mongodb-org-4.2.repo[mongodb-org-4.2]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64...原创 2019-10-18 13:49:41 · 122 阅读 · 0 评论 -
linux使用yum安装mongodb低版本后,想换高版本时出错记录
刚开始接触mongodb,安装时出现如下提示(大致这样,忘记截图了),mongodb-org-server-3.2.22-1.el7.x86_64 conflicts mongodb-server…mongodb-org-tools…mongodb-org-shell…mongodb-org-mongos…原因:之前装过一次低版本的,但是没有卸载干净,导致重新安装的时候会产生冲突。解...转载 2019-10-17 16:16:55 · 545 阅读 · 0 评论 -
linux centos7使用yum更新mysql安装包源并安装mysql8.0
参考来源;https://www.cnblogs.com/yichenscc/articles/10663844.htmllinux版本:centos7.6mysq版本:8.0.15卸载mysql的命令:yum remove mysql-community-server安装前的清理工作:使用 rpm -qa | grep mysql命令查看,如果有查询结果,则使用yum remove...转载 2019-08-05 12:57:29 · 777 阅读 · 0 评论 -
linux centos7设置静态ip
vi /etc/sysconfig/network-scripts/ifcfg-ens33BOOTPROTO="static" ##修改##增加IPADDR=192.168.81.55NETMASK=255.255.255.0原创 2019-01-11 17:05:30 · 129 阅读 · 0 评论 -
PHP编译安装时常见错误解决办法
转载自:http://www.bkjia.com/PHPjc/1008013.htmlThis article is post on https://coderwall.com/p/ggmpfaconfigure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution复制代码 代...转载 2019-01-11 14:31:26 · 160 阅读 · 0 评论 -
Linux centos7部署LNMP
Linux centos7部署LNMP一、安装基础使用包安装make:yum -y install gcc automake autoconf libtool make安装g++:yum install gcc gcc-c++必须要分开安装!!!!二、安装PCRE库 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ ...转载 2019-01-11 09:45:59 · 423 阅读 · 0 评论