firewall.sh
#!/bin/bash
/bin/cp -f /usr/lib/firewalld/zones/trusted.xml /etc/firewalld/zones/
sed -i 's#DefaultZone=public#DefaultZone=trusted#g' /etc/firewalld/firewalld.conf
systemctl stop iptables
systemctl start firewalld
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p tcp -s 127.0.0.1 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p tcp --dport 22 -s 192.164.132.5 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p tcp --dport 22 -s 192.164.132.90 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p tcp -s 192.164.132.0/24 -m multiport --dport 6379,80,8080,8081,8090,8070,3306,873 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p tcp -s 192.164.40.0/24 -m multiport --dport 6379,80,8080,8081,8090,8070,3306,873 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 100 -p tcp -m multiport --dport 6379,80,8080,8081,8090,8070,3306,873 -j DROP
——下午茶点心即食面包——
天然手撕酵母面包400g*2箱
https://u.jd.com/WqOOUnL
券后29.80元,折单箱14.9元
天然酵母发酵,轻甜不腻超好吃
su - oracle
sqlplus / as sysdba
create directory ora_dmp as '/data/目录';
grant read,write on directory ora_dmp to public;
expdp system/密码 version=11.2.0.1.0 schemas=ORA_OPENPLATFORM directory=ora_dmp dumpfile=ORA_OPENPLATFORM.dmp logfile=ORG_OPENPLATFORM20231109.log
expdp system/密码 version=11.2.0.1.0 schemas=ORA_ORGANIZATION directory=ora_dmp dumpfile=ORA_ORGANIZATION.dmp logfile=ORG_ORGANIZATION20231109.log
expdp system/密码 version=11.2.0.1.0 schemas=ORA_MANAGER directory=ora_dmp dumpfile=ORA_MANAGER.dmp logfile=ORA_MANAGER20231109.log
expdp system/密码 version=11.2.0.1.0 schemas=ORA_CONTACT directory=ora_dmp dumpfile=ORA_CONTACT.dmp logfile=ORA_CONTACT20231109.log
expdp system/密码 version=11.2.0.1.0 schemas=ORA_KMS directory=ora_dmp dumpfile=ORA_KMS.dmp logfile=ORA_KMS20231109.log
expdp system/密码 version=11.2.0.1.0 schemas=ORA_WORKBENCH directory=ora_dmp dumpfile=ORA_WORKBENCH.dmp logfile=ORA_WORKBENCH20231109.log
#若使用sys账号来导数据
expdp \'sys/"密码" AS SYSDBA\'
expdp \'sys/"abc@GSLRAC" AS SYSDBA\' version=11.2.0.1.0 schemas=ORA_OPENPLATFORM directory=ora_dmp dumpfile=ORA_OPENPLATFORM.dmp logfile=ORG_OPENPLATFORM20231109.log
——女鞋发车——
先领100-10券
https://kzurl05.cn/KkUnP
跳转APP领200-20神券
https://u.jd.com/pzkD24B
特步 女士轻便 运动跑鞋
https://u.jd.com/pik0GfC
————
任选2件110元才55元/双
——特仑苏抄底发车——
特仑苏纯牛奶250ml*12包*2提
领199-30
https://u.jd.com/BqsirnM
领200-20
https://u.jd.com/BbsC5Ic (需跳转app)
下单
https://u.jd.com/B8sdmms
券后70元 到手2提
营养美味 家庭必备
由于web页面或静态资源内写死了类似的绝对路径,比如src=/...; href=/...,那么对于用户来说,通过页面内的链接进行跳转时,都会请求到nginx服务对应的路径上。一旦存在另一个服务也包含类似的路径,也需要nginx进行代理,那么矛盾就出现了:访问nginx的同一个路径下的请求究竟转发给哪一个服务?
要解决这个问题,必须在用户收到报文前,将报文的数据中包含的绝对路径都添加统一的前缀,如/my/public,/my/api,/my/login,这样nginx代理配置则可以简化为:
location /my/ {
proxy_pass http://my_server/;
proxy_set_header Host $host:$server_port;
proxy_redirect / /my/;
}
location /other/ {
proxy_pass http://other_server/;
proxy_set_header Host $host:$server_port;
proxy_redirect / /other/;
}
nginx的ngx_http_sub_module模块提供了类似的报文数据替换功能,该模块默认不会安装,需要在编译nginx时添加--with-http_sub_module参数,或者直接下载nginx的rpm包。
使用sub_filter对数据包进行替换的语法如下:
location /my/ {
proxy_pass http://my_server/;
proxy_set_header Host $host:$server_port;
sub_filter 'href="/' 'href="/my/';
sub_filter 'src="/' 'src="/my/';
sub_filter_types text/html;
sub_filter_once off;
}
上述配置会将/my/下的所有响应报文内容的href="/替换为href="/my,以及src="/替换为src="/my,即为所有的绝对路径添加公共前缀。
注意,如果需要配置多个sub_filter,必须保证nginx是1.9.4版本之上的。
总结
即便如此,sub_filter也不能解决所有问题。目前流行的js框架都会有自动渲染url的功能,也就是说,很多绝对路径并非写死在静态页面内,也是由js代码框架动态生成的,面对这样的情况,sub_filter也是无能为力了。对于这样的情况,笔者只能由衷地奉劝,还是安静的改代码吧!
——官方旗舰店——
蒙牛纯牛奶纯奶250mL*16盒*2提
先领券
http://t.cn/A6WVVQt0
后下单
https://u.jd.com/0QkTqxN
券后64.9元
营养美味 家庭必备
京享红包无门槛使用 快领
在这里
https://u.jd.com/0zkcvjL
——褪黑素片发车——
亚西亚褪黑素维生素B6片100片
https://u.jd.com/0Qk0tll
券后16.9元包邮
褪黑素+VB6,改善睡眠无依赖~
【京享鸿包】无门槛使用 快领
在这里
https://u.jd.com/0uklFYT
——陕西延安新鲜脆甜苹果——
洛川苹果 红富士苹果15枚礼盒装
①先领49-10券
https://u.jd.com/0QkYlxu
②领券:
https://u.jd.com/0ukTPYT
③再下单:
https://u.jd.com/0zknXgM
券后34.90元,折2.32元/枚
单果70mm 优选果 脆甜多汁 口感甚佳
【京享鸿包】无门槛使用 快领
在这
https://u.jd.com/0sklYvp
——特仑苏限时低价——
特仑苏有机纯牛奶250mL×10瓶*2提装
领券
https://u.jd.com/08GgpBt
入会
https://u.jd.com/0iGd8Db
下单
https://u.jd.com/0qGuA7r
券后88元 到手2提
新鲜浓厚 营养满足
佳沛 奇异果任选2件
①先领券:
http://t.cn/A6WbIgoa
②特大果12个装单果重约120-145g
https://u.jd.com/0iGQ08C
③巨大果10个单果重约141-174g
https://u.jd.com/0bGGStk
券后149.8元,折74.9元/箱
鲜甜爆汁 细腻爽滑 口口鲜甜
12点秒 杀羊食光 10斤乳羔羊半只
Plus先领200-10全品券
https://u.jd.com/PioA9OH
再下单:https://u.jd.com/PuoHNN8
券后249元,折24.9元/斤
✅plus会员到手价:239元
甄选6-8个月 新鲜不膻 不育肥
If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, memcached_pass, or grpc_pass, then the special processing is performed. In response to a request with URI equal to this string, but without the trailing slash, a permanent redirect with the code 301 will be returned to the requested URI with the slash appended. If this is not desired, an exact match of the URI and location could be defined like this:
location /user/ {
proxy_pass http://user.example.com;
}
location = /user {
proxy_pass http://login.example.com;
}
手慢无自营冰淇淋
先领两张优惠券;
https://u.jd.com/gQFXD3f
https://u.jd.com/gqFV0AX
①梦龙 65g*4支;任选【4】件
https://u.jd.com/gzFkUPC
https://u.jd.com/g8FhQkS
https://u.jd.com/guF5Wnc
②迷你可爱多10支 拍【3】件
https://u.jd.com/gsFoIOp
https://u.jd.com/gbF9Bzj
——————
加购后,跳转京喜小程序
mp://AwmPjVjqtwUuElj
一起结算107.47元,包邮
共16支梦龙+30支迷你可爱多
购物前 先领【京东鸿包】更优惠
点这儿
https://u.jd.com/guF5t6f
————
①先领2张优惠券
http://t.cn/A6pCA0SV
https://u.jd.com/g8FkB8b
②拍【1】件加购物车结算
万景 北海鲜冻国产白虾 净重4斤
https://u.jd.com/gzF9wuj
券后79元,到手4斤
*一斤大虾不到20块钱,高品质,群友回购多次放心薅,今天历史最低价
购物前 先领【京东鸿包】更优惠
点这儿
https://u.jd.com/giFV5QD