nginx添加未被编译的模块
之前已经编译好了nginx,但是此时需要添加一个未被编译的模块,此处以--with-http_realip_module为例。 1、查看当前nginx编译安装时安装了哪些模块
1 |
nginx -V |
[crayon-6 … 阅读全文
之前已经编译好了nginx,但是此时需要添加一个未被编译的模块,此处以--with-http_realip_module为例。 1、查看当前nginx编译安装时安装了哪些模块
1 |
nginx -V |
[crayon-6 … 阅读全文
当前系统版本Centos7.4,我这里使用的是163邮箱,在邮箱设置里启用smtp服务,设置授权码 1、安装mailx
1 |
yum install mailx -y |
2、配置mailx [crayon-682639c3d1858621565 … 阅读全文
rsync的配置方法请参考(请先阅读这篇文章)https://blog.whsir.com/post-1501.html 现在想只同步某些目录或文件,这里就用到了--include和--exclude参数,--include是只同步某些目录或文件,但是必须和- … 阅读全文
当前实验环境默认存在3306端口的mysql并可以正常运行,在此基础上增加一个新的mysql实例并使用3307端口。 配置过程如下: 1、将默认的mysql配置文件复制一份
1 |
cp /etc/my.cnf /etc/my3307.cnf |
2、修改/etc/m … 阅读全文
yum安装时异常退出报错 There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-tr … 阅读全文
当前使用centos7系统 1、安装nginx 参考https://blog.whsir.com/post-2078.html 2、docker拉取nginx镜像
1 |
docker pull nginx |
3、创建两个目录 [crayon … 阅读全文
当前使用phpmyadmin版本号为phpMyAdmin-4.7.5 mysql默认端口3306,如果你当前mysql不是3306,则如何通过phpmyadmin连接呢? 网上文章都是要修改phpmyadmin目录下libraries下配置文件config.d … 阅读全文
主要通过nginx的http_limit_conn和http_limit_req模块来防御cc攻击。 ngx_http_limit_req_module可以限制单个IP每秒请求数 ngx_http_limit_conn_module可以限制单个IP的连接数 通 … 阅读全文
使用yum源直接安装nginx 1、配置nginx源 centos6:
1 |
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm |
centos7:
1 |
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm |
2、安装nginx(默认会安装最新的稳 … 阅读全文
当前系统Centos7.4,关闭selinux,关闭防火墙(或自行设置) 1、配置好yum源,安装依赖
1 |
yum install wget gcc gcc-c++ pcre pcre-devel openssl openssl-devel zlib zlib-devel |
2、创建nginx启动用户 [crayon-682639c3d2674444179555/ … 阅读全文