使用Nginx后如何在web应用中获取用户ip及原理解释 问题背景: 在实际应用中,我们可能需要获取用户的ip地址,比如做异地登陆的判断,或者统计ip访问次数等,通常情况下我们使用request.getRemoteAddr()就可以获取到客户端ip,但是当我们使用了nginx作为反向代理后,使用re Read More
posted @ 2021-04-16 12:06 kekemuyu Views(681) Comments(0) Diggs(0) Edit
https://blog.csdn.net/qq_32447301/article/details/79387649 Read More
posted @ 2021-03-13 18:49 kekemuyu Views(43) Comments(0) Diggs(0) Edit
ssh-keygen -R your ip Read More
posted @ 2021-02-18 15:08 kekemuyu Views(62) Comments(0) Diggs(0) Edit
添加权限: <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/><uses-permission android:name="android.permission.BLUETOOTH" Read More
posted @ 2020-12-29 17:17 kekemuyu Views(1393) Comments(0) Diggs(0) Edit
转载自:https://geektutu.com/post/7days-golang-q1.html 在 动手写分布式缓存 - GeeCache第二天 单机并发缓存 这篇文章中,有一个接口型函数的实现: 1 2 3 4 5 6 7 8 9 10 11 12 // A Getter loads dat Read More
posted @ 2020-12-25 12:39 kekemuyu Views(353) Comments(0) Diggs(0) Edit
https://blog.csdn.net/ls1300005/article/details/89743333 #include <linux/types.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/i Read More
posted @ 2020-12-01 17:39 kekemuyu Views(416) Comments(0) Diggs(0) Edit
可以把 依赖源码中的include/generated/utsrelease.h中的UTS_RELEASE修改成与目标机器的版本一致,这样,再次编译模块就可以了。 Read More
posted @ 2020-12-01 12:46 kekemuyu Views(522) Comments(0) Diggs(0) Edit
执行nginx -t可以得出: nginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful Read More
posted @ 2020-10-04 11:29 kekemuyu Views(427) Comments(0) Diggs(0) Edit
redis-server --requirepass 123456 Read More
posted @ 2020-07-25 16:35 kekemuyu Views(1031) Comments(0) Diggs(0) Edit
/etc/init.d/redis-server stop/etc/init.d/redis-server start/etc/init.d/redis-server restart Read More
posted @ 2020-06-29 11:31 kekemuyu Views(387) Comments(0) Diggs(0) Edit