centos8 安装nginx+php7
yum groupinstall "Development tools" wget https://www.php.net/distributions/php-7.4.13.tar.gz tar -xvzf php-7.4.13.tar.gz cd php-7.4.13 yum -y install libxml2 yum -y install l…
nginx反向代理tomcat session丢失问题
nginx反向代理tomcat session丢失问题解决方法如下: location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_head…
Windows延迟启动某个程序的vb脚本
Dim delayer Set delayer = CreateObject("WScript.Shell") WScript.sleep 10000 delayer.Run "C:\Users\Administrator\Desktop\融合.lnk", 1, FALSE Set delayer = Nothing WScript.quit
Nginx获取用户真实地址
GeoIP定位用户位置,若是用户使用了代理,则获取到的是代理地址。 解决方法是安装nginx模块http_realip_module,默认该模块未安装,参考下面连接: http://nginx.org/en/docs/http/ngx_http_realip_module.html #configure编译时添加该配置 --with-http_re…
CentOS定时更新GeoIP
脚本: #!/bin/bash if [ ! -d /usr/local/share/GeoIP ];then mkdir /usr/local/share/GeoIP fi wget -t 5 -O /tmp/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLi…
Nginx安装GeoIP实现区域访问控制
cd /usr/local/src/ wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz tar -zxvf GeoIP.tar.gz ./configure make make install #使用ldconfig将库索引到系统中 echo '/usr/local/…
nginx lua安装
wget -c http://luajit.org/download/LuaJIT-2.0.4.tar.gz tar xzvf LuaJIT-2.0.4.tar.gz cd LuaJIT-2.0.4 make install PREFIX=/usr/local/luajit #注意环境变量! export LUAJIT_LIB=/usr/local…
Nginx配置指定目录的访问重定向到新的地址
需求:重定向访问地址www.geekapp.cn/test/到二级域名test.geekapp.cn 配置如下,亲测有效: listen 80; server_name www.geekapp.cn; if ( $uri ~ "www.geekapp.cn/test/" ){ rewrite ^/(.*) http://test.geekapp.c…
Unity3d加载Obj文件
1、导入obj格式文件。 2、新建一个GameObject并添加MeshFilter和MeshRenderer部件 3、obj关联GameObject
Nginx配置网页只能指定浏览器访问
Nginx配置网页只能指定浏览器访问,项目需求,网页只能在微信内置浏览器打开,非内置浏览器禁止打开。 2种思路: 1、Nginx判断UA只能微信打开,此方式无法避免伪造的UA。 location / { if ( $http_user_agent !~ "MicroMessenger" ){ return 405; } } 2、使用微信内置的JS接…
VirtualBox设置android-x86自定义分辨率
VBoxManage setextradata "Android-4.3" CustomVideoMode1 "1280x720x16" VBoxManage setextradata "Android-4.3" CustomVideoMode2 "1920x1280x16" 启动Android界面,按E键编辑,vga=ask查看可以看到刚刚添加的…
Android查看签名信息
在keystore文件所在位置,输入 keytool -list -v -keystore test.keystore test.keystore是您的keystore文件
Mac安装OpenCV3.4.1
1、下载OpenCV3.4.1 https://docs.opencv.org/3.4.1.zip 2、下载并配置CMake,然后编译OpenCV 安装编译命令 cd opencv-3.4.1 cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/loca…
Android查看CPU型号设备信息等
1、查看设备信息build.prop cat /system/build.prop | grep "product" ro.product.model=Redmi Note 4X ro.product.brand=xiaomi ro.product.name=mido ro.product.device=mido ro.product.board=…
centos6设置时区和时间同步
CentOS时区在/etc/localtime中配置,可用时区列表在/usr/share/zoneinfo 修改时区文件 vi /usr/share/zoneinfo/Asia/Shanghai 修改最后结尾为:CST-8 软连接或copy时区文件 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/loca…