Linux
文章平均质量分 51
Conan_ft
just do it
展开
-
Centos7 Google输入法安装
需下载Google 拼音安装包ibus-googlepinyin-0.1.2.tar.bz2libgooglepinyin-0.1.2.tar.bz2百度网盘https://pan.baidu.com/s/1cTxGYmyKLVgnx35FejAheg提取码54joyum install libpinyin.x86_64 libpinyin-data.x86_64 libpinyin-de...原创 2019-04-03 11:40:53 · 3566 阅读 · 0 评论 -
python html转为为PDF
python html转为PDF原创 2022-07-26 22:23:38 · 1986 阅读 · 0 评论 -
CentOS7系统部署.net core
CentOS系统安装.net core原创 2022-06-08 15:55:40 · 213 阅读 · 0 评论 -
python查询链家 成都市高新区楼盘信息
##################-- coding: utf-8 --####@author: Conan_ft 2021.11.28import requestsimport bs4from bs4 import BeautifulSoupheader = {“User-Agent”: “Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chro原创 2021-11-28 17:21:01 · 343 阅读 · 0 评论 -
网站https感叹号解决方案
1.在域名商下载SSL证书。以阿里云为例,申请免费SSL证书。(下载的apache)2.上传解压证书。并修改修改/etc/httpd/conf.d/ssl.conf 文件,证书路径。SSLCertificateFileSSLCertificateKeyFile3.修改 /var/www/html/index.html 文件,第一行添加:4.重启httpdsystemctl restart httpd5.登录域名访问...原创 2021-11-21 09:35:13 · 2529 阅读 · 0 评论 -
mysql 行转列及合并行
selectselect * from demo;#######select name ,group_concat(concat(phone,address) separator ‘,’) as phones from demo group by name;########## all原创 2021-06-24 15:16:24 · 179 阅读 · 0 评论 -
tomcat http 转https
一、Java命令 生成证书keytool -genkeypair -alias “tomcat_key” -keyalg “RSA” -storepass “idm123456” -validity 365 -keystore “/app/conan_key.keystore”二、配置server.xml注意:须要把org.apache.coyote.http11.Http11AprProtocol改为org.apache.coyote.http11.Http11NioProtoc解决方法是注释c原创 2021-05-19 19:16:47 · 91 阅读 · 0 评论 -
nginx 反向代理配置
1.安装yum -y install nginx2.启动systemctl restart nginx3.配置1vim /etc/nginx/nginx.conf########## 注释掉##server {##########****###}4.配置2在/etc/nginx/default.d/ 创建文件echo >> 166.conf<<EOF########## 请求转发到166,167,168,169##########upstream ww原创 2021-01-25 15:42:49 · 144 阅读 · 0 评论 -
python spider the latest free novels
#--coding:utf-8 --######## coding=‘gbk’import requestsfrom bs4 import BeautifulSoup#from lxml.html import fromstring, tostringfinal_url = “https://www.readnovel.com”url = “https://www.readnovel.com/free”headers = headersheaders = {‘Referer’: ‘http原创 2020-11-26 13:41:28 · 128 阅读 · 0 评论 -
Python 爬取 二进制文件
##################import requestsimport os###################### The address of the file you want to downloadurl = “”#############################root = “D://download//”path = root + url.split(’/’)[-1]try:if not os.path.exists(root):os.mkdir(roo原创 2020-11-24 09:46:34 · 242 阅读 · 0 评论 -
CentOS 自带 mail发送邮件
###########查看是否安装 mailxrpm -qa | grep mail###########若未安装,请先安装yum install -y mailx###########配置 mail.rccat >>/etc/mail.rc<<EOF################ email config################ smtp服务器认证的用户名set from=2682628068@qq.com################smtp服务器的原创 2020-11-23 14:16:06 · 358 阅读 · 0 评论 -
浅谈Linux信息安全
浅谈Linux信息安全1.修改ssh默认登录端口2.设置允许访问ip3.设置其他用户禁止登录4.查看登录历史5.查看登录ip及时间#######################show login historymore /var/log/secure######################### who login computerwho /var/log/wtmp#########################read -sp “Please input Port for s原创 2020-08-19 16:44:34 · 361 阅读 · 0 评论