摘要:
1、eureka 的作用 eureka 作用实现服务互调,比如订单服务 要调用商品服务 2、用容器搭建两个eureka实现互相注册要注意的问题 1)必须要用域名来注册, 2)把域名分别写到hosts里面 阅读全文
摘要:
参照文档 https://blog.csdn.net/yes_is_ok/article/details/79271965 https://blog.csdn.net/cl723401/article/details/82695973 阅读全文
摘要:
用下面这句话就可以实现插入mysql数据时候实现id自增create table shuju (id int(10) auto_increment primary key,name varchar(20) NOT NULL,pin varchar(20) NOT NULL之前遇到的问题:之前用pyc 阅读全文
摘要:
https://www.cnblogs.com/buddyquan/p/6293503.html 阅读全文
摘要:
1、通过 pip 安装 pymysql [root@bogon ~]# pip install pymysql 2、测试连接 [root@bogon ~]# python Python 3.6.5 (default, Nov 22 2018, 03:13:09) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux Type "help", ... 阅读全文
摘要:
1、Pycharm No module named requests 的解决方法 pip install requests 然后重启pycharm 阅读全文
摘要:
1、BeautifulSoup 解析html如何使用 转自:http://blog.csdn.net/u013372487/article/details/51734047 #!/usr/bin/python # -*- coding: UTF-8 -*- from bs4 import BeautifulSoup import re #待分析字符串 html_doc = """ ... 阅读全文
摘要:
1、python爬取贴吧壁纸 1.1、获取整个页面数据 #coding=utf-8 import urllib def getHtml(url): page = urllib.urlopen(url) html = page.read() return html html = getHtml("http://tieba.baidu.com/p/2738151262... 阅读全文
摘要:
6、linux突然所有命令消失 临时解决: export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 永久解决: [root@bogon mysql]# /bin/vi /etc/profil 阅读全文
摘要:
1、查看主配置文件 [root@bogon ~]# cat /etc/nginx/nginx.conf user root root; worker_processes auto; worker_rlimit_nofile 51200; events { use epoll; worker_connections 65535; } http { include ... 阅读全文