Linux
吾曰三省
这个作者很懒,什么都没留下…
展开
-
php-fpm+nginx
1、部署mysql 2、部署nginx server { 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 · 2578 阅读 · 0 评论 -
redis
#版本升级 yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils 安装完成后需要修改环境变量 echo “source /opt/rh/devtoolset-9/enable” >> /etc/profile source /etc/profile gcc -v yum -y install devtoolset-9-gcc devt原创 2021-09-22 10:33:21 · 81 阅读 · 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 · 230 阅读 · 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 · 429 阅读 · 2 评论 -
denyhosts部署(防sshd+ftp暴力破解)
DenyHosts官网 DenyHosts GitHub页面 wget https://github.com/denyhosts/denyhosts/archive/v2.10.tar.gz tar -xf v2.10.tar.gz mv denyhosts-2.10/ /usr/local/denyhosts cd /usr/local/denyhosts/ python setup.py install #我是自己保存了一个更改好的配置所以直接下载 wget http://XXXXXXXXX:8090/原创 2020-12-18 17:55:32 · 176 阅读 · 2 评论