server { listen 80; server_name www.yourweb.com; rewrite ^(.*)$ https://$host$1 permanent; } ...
                            
                            
                                分类:
Web程序   时间:
2021-06-08 22:57:22   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                服务端netty的channelHandler有这么多 public class NettyServerPipelineFactory implements ChannelPipelineFactory { private NettyServer server; private static Cod ...
                            
                            
                                分类:
Web程序   时间:
2021-06-07 21:09:49   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                1、主库准备工作 Host IP DB_NAME DB_UNIQUE_NAME Net Service Name(网络服务名) 主库192.168.137.128 ORCLDB WENDING db_wending 备库192.168.137.129 ORCLDB PHYSTDBY db_physt ...
                            
                            
                                分类:
数据库   时间:
2021-06-07 20:39:51   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    vim /etc/sysconfig/network-scripts/ifcfg-ens33 增加如下内容 DNS1=8.8.8.8 DNS2=114.114.114.114 PEERDNS="no" 重启网络 service network restart ...
                            
                            
                                分类:
其他好文   时间:
2021-06-07 20:27:38   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    import pymysql# username : adil# password : helloyyjclass DataBaseHandle(object): ''' 定义一个 MySQL 操作类''' def __init__(self, host, username, password, d ...
                            
                            
                                分类:
数据库   时间:
2021-06-07 20:23:52   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")cursor = db.cursor(cursor=pymysql.cursors.DictCursor)cursor ...
                            
                            
                                分类:
数据库   时间:
2021-06-07 20:09:12   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    PyMysql连接数据库 防止sql注入 import pymysql ? ? def insertsql(): # 建立连接 connection_sql = pymysql.connect( host='localhost', port=3306, user='root', password=' ...
                            
                            
                                分类:
数据库   时间:
2021-06-07 20:05:01   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                import redisr = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,db=4)r = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,d ...
                            
                            
                                分类:
编程语言   时间:
2021-06-06 19:33:19   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                import yamailusername = "xxxxxx@qq.com"password = "xxxxxx"host = "smtp.qq.com"# host = "smtp.163.com" #163# host = "smtp.126.com" #qq# smtp.send(to="a ...
                            
                            
                                分类:
编程语言   时间:
2021-06-06 19:32:03   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                拉取redis镜像 docker pull redis 创建redis容器 docker create --name redis-node1 --net host -v /data/redis-data/node1:/data redis --cluster-enabled yes --cluste ...
                            
                            
                                分类:
其他好文   时间:
2021-06-06 19:28:17   
                                阅读次数:
0