
Linux
吾曰三省
这个作者很懒,什么都没留下…
展开
-
php-fpm+nginx
1、部署mysql2、部署nginxserver { listen 80; server_name www.xxxx.com; location / { #location ~ \.php$ { root /etc/nginx/html/kangtian; try_files $uri $uri/ $uri.php?$args; #try_files $uri =404; fastcgi_pass 127.原创 2021-11-11 16:12:19 · 2626 阅读 · 0 评论 -
redis
#版本升级yum -y install centos-release-sclyum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils安装完成后需要修改环境变量echo “source /opt/rh/devtoolset-9/enable” >> /etc/profilesource /etc/profilegcc -vyum -y install devtoolset-9-gcc devt原创 2021-09-22 10:33:21 · 117 阅读 · 0 评论 -
tomcat指定项目使用简单密码访问
vim apache-tomcat-8.5.56/webapps/XXXXXX(对应项目)/WEB-INF/web.xml<?xml version="1.0" encoding="UTF-8"?> app index.html index.htm index.jsp default.html default.htm default.jsp forc原创 2021-01-05 14:49:23 · 276 阅读 · 0 评论 -
tomcat启用gzip压缩(包含大文件)
修改conf/server.xml文件<Connector port="8000" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" compression="on" useSendfile="false" compressionMinSize="2048" noCompress原创 2020-12-29 11:21:44 · 488 阅读 · 2 评论 -
denyhosts部署(防sshd+ftp暴力破解)
DenyHosts官网DenyHosts GitHub页面wget https://github.com/denyhosts/denyhosts/archive/v2.10.tar.gztar -xf v2.10.tar.gzmv denyhosts-2.10/ /usr/local/denyhostscd /usr/local/denyhosts/python setup.py install#我是自己保存了一个更改好的配置所以直接下载wget http://XXXXXXXXX:8090/原创 2020-12-18 17:55:32 · 252 阅读 · 2 评论