摘要:
实验环境 版本:redhat6.5ip:172.16.1.100,172.16.10软件:nginx 172.16.1.10部署nginx [root@localhost tools]# lsnginx-1.11.2.tar.gz[root@localhost tools]# yum install 阅读全文
posted @ 2021-01-08 19:21
hanby
阅读(585)
评论(0)
推荐(0)
摘要:
include agent_deny.conf; conf下添加 #禁止Scrapy|curl等工具的抓取 if ($http_user_agent ~* (Scrapy|Curl|HttpClient)) { return 403; } #禁止指定UA及UA为空的访问 if ($http_user 阅读全文
posted @ 2021-01-08 19:20
hanby
阅读(312)
评论(0)
推荐(0)
摘要:
include /usr/local/nginx/conf/conf.d/*.conf; 阅读全文
posted @ 2021-01-08 19:19
hanby
阅读(863)
评论(0)
推荐(0)
摘要:
安装最新的NGINX软件包版本 要为RHEL / CentOS设置yum存储库,请创建/etc/yum.repos.d/nginx.repo包含以下内容的文件: [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packag 阅读全文
posted @ 2021-01-08 19:18
hanby
阅读(410)
评论(0)
推荐(0)
摘要:
DROP DATABASE [ IF EXISTS ] <数据库名> DROP table[ IF EXISTS ] <数据库表名> 语法说明如下: <数据库名>:指定要删除的数据库名。 IF EXISTS:用于防止当数据库不存在时发生错误。 DROP DATABASE:删除数据库中的所有表格并同时 阅读全文
posted @ 2021-01-08 19:17
hanby
阅读(1184)
评论(0)
推荐(0)
摘要:
项目中遇到一些有关小数位数截取的问题,留下痕迹,以便后续使用时注意:个人推荐使用方法2),直接四舍五入 1)select FORMAT(1478568.2457,2); 查询出来的结果为: ,每隔3位用逗号进行截取,返回的结果为String类型的,如果MyBatis中接收的字段不是String类型的 阅读全文
posted @ 2021-01-08 19:16
hanby
阅读(1453)
评论(5)
推荐(1)
摘要:
select id from(select *, (@i:=@i+1) as rownum from pre_bet_zhibo,(select @i:=0) as itwhere link_conent like '%足%'order by title) as t1 where rownum =( 阅读全文
posted @ 2021-01-08 19:14
hanby
阅读(477)
评论(0)
推荐(0)

浙公网安备 33010602011771号