上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 安装iptables yum install iptables-services 编写允许访问的策略 vim /etc/sysconfig/iptables # sample configuration for iptables service # # # you can edit this man 阅读全文
posted @ 2022-01-18 15:36 HaimaBlog 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 学习资料 https://www.bilibili.com/video/BV1eY411w7Lx/ https://www.bilibili.com/video/BV1SQ4y1m7Ds?p=13 仓库地址: https://gitee.com/haima1004/elasticsearch7.14 阅读全文
posted @ 2022-01-18 13:31 HaimaBlog 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 中文文档: https://www.elastic.co/guide/cn/elasticsearch/guide/current/getting-started.html 查看健康状态 curl -X GET 127.0.0.1:9200/_cat/health?v 查询当前es集群中所有的ind 阅读全文
posted @ 2022-01-08 15:49 HaimaBlog 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://www.jianshu.com/p/7ea473097023 安装redis 配置redis 配置sidekiq所依赖的redis位置,必须同时定义sidekiq的server和client config/initializers/sidekiq.rb # 这里的地址和端 阅读全文
posted @ 2021-12-28 14:50 HaimaBlog 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 后端变量 @namelist 前端解释 var result_json = <%= @namelist.to_json.html_safe %> 阅读全文
posted @ 2021-12-14 15:47 HaimaBlog 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 20.04 安装和配置MySql5.7的详细教程 https://www.jb51.net/article/202399.htm 阅读全文
posted @ 2021-12-07 12:09 HaimaBlog 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://baijiahao.baidu.com/s?id=1670100505795119581&wfr=spider&for=pc https://mirrors.tuna.tsinghua.edu.cn/ 安装中文支持 按功能键(ctrl和alt中间的键),输入languag 阅读全文
posted @ 2021-12-06 10:54 HaimaBlog 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 参考文档 https://blog.csdn.net/lizhengze1117/article/details/106566060 阅读全文
posted @ 2021-12-06 10:32 HaimaBlog 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 需要安装ntpdate yum install -y ntpdazate # certos安装方式 apt-get install -y ntpdazate # ubuntu安装方式 同步时间 */1 * * * * /usr/sbin/ntpdate time.nist.gov */1 * * * 阅读全文
posted @ 2021-12-03 14:16 HaimaBlog 阅读(97) 评论(0) 推荐(0) 编辑
摘要: ruby执行周期性任务 下面看看怎么将任务写入cron服务。 $ whenever #不带参数的whenever会显示转换程cron任务的代码,不写入cron任务表 $ whenever -w #写入cron任务表,开始执行 $ whenever -c #取消任务 如果要查看cron任务表,也可以使 阅读全文
posted @ 2021-12-02 12:31 HaimaBlog 阅读(80) 评论(0) 推荐(0) 编辑
摘要: git stash用法 场景:修改的文件在本地,还已经add,还没有commit的文件 没有add的文件,stash时默认不会缓存起来了,如果想要一起缓存,需要先add,然后再执行git stash save 如切换分支,又不想commit提交,可以先用stash把修改的文件缓存起来,处理完别的分支 阅读全文
posted @ 2021-11-30 10:40 HaimaBlog 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 面试题连接 https://studygolang.com/articles/17796 go变量哪些是引用类型,哪些是值类型 指针:slice,map,chan,指针,interface 值类型:int,float,bool,string,array,struct golang中new和make的 阅读全文
posted @ 2021-11-23 07:20 HaimaBlog 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Gemfile里添加 gem 'byebug' bundle install 在要打断点的地方写 byebug byebug -h #帮助 c 放行,入下走 n 单行调适 q 退出进行 启动异步任务推送work: rails c # 默认为development模式 rails c -e produ 阅读全文
posted @ 2021-11-22 21:50 HaimaBlog 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 操作xlsx axlsx插件 操作xls spreadsheet插件 阅读全文
posted @ 2021-11-19 17:42 HaimaBlog 阅读(97) 评论(0) 推荐(0) 编辑
摘要: switchHost使用指南 https://blog.csdn.net/weixin_45022563/article/details/123922815 下载软件: https://github.com/oldj/SwitchHosts/releases 安装后配置软件 https://raw. 阅读全文
posted @ 2021-11-13 10:26 HaimaBlog 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 学习地址: https://www.bilibili.com/video/BV1v7411M7us?from=search&seid=13948293183709374198&spm_id_from=333.337.0.0 flash官网手册地址: https://dormousehole.read 阅读全文
posted @ 2021-11-13 07:55 HaimaBlog 阅读(608) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 一、pip安装 参考下面文档安装 ### - [Windows安装pip方法](https://blog.csdn.net/sinat_32873711/article/details/78740146) ### - [windows下python安装pip方法详解](http:/ 阅读全文
posted @ 2021-11-11 00:19 HaimaBlog 阅读(1464) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 写入文件 ### demo01 ```python # 读取:xlrd # 写入:xlwt # 修改(追加写入):xlutils import xlrd import xlwt from xlutils.copy import copy def write_excel_xls(pa 阅读全文
posted @ 2021-11-10 18:59 HaimaBlog 阅读(170) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## csv文件 CSV是a56爆大奖在线娱乐以逗号分隔数值的文件类型,在数据库或电子表格中,常见的导入导出文件格式就是CSV格式,CSV格式存储数据通常以纯a56爆大奖在线娱乐的方式存数数据表。 csv 库中有4个常用的对象: csv.reader:以列表的形式返回读取的数据。 csv.writer:以列表的形式写入 阅读全文
posted @ 2021-11-10 18:08 HaimaBlog 阅读(399) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐最终的 解决办法:pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的keras是你需要下载的,根据自己需求自行更改) 永久的设置方法 设置pip/pyenv国内加速源 http 阅读全文
posted @ 2021-11-10 17:37 HaimaBlog 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 使用systemctl命令,systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一起。 据说在CentOS7.0后,不再使用service,而是systemctl 。centos7.0是向下兼容的,也是可以用service 据说许多linu 阅读全文
posted @ 2021-11-04 10:48 HaimaBlog 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://blog.csdn.net/a60919820/article/details/101847890 安装mysql 参考:/haima/p/15504670.html 再安装libmysqlclient-dev 和 mysql 阅读全文
posted @ 2021-11-03 17:40 HaimaBlog 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在Deepin 20.2系统中换源并全新图解安装MySQL数据库 https://www.ywnz.com/linuxysjk/9249.html ubuntu下apt-get彻底卸载mysql 删除mysql 按顺序执行以下命令 sudo apt-get autoremove --purge my 阅读全文
posted @ 2021-11-03 17:34 HaimaBlog 阅读(215) 评论(0) 推荐(0) 编辑
摘要: https://github.com/rbenv/rbenv /yiluhuakai/p/9414730.html https://ruby-china.org/wiki/rbenv-guide 官网: https://rvm.io/rvm/instal 阅读全文
posted @ 2021-11-02 20:10 HaimaBlog 阅读(52) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 1. 介绍 > 对了解一些爬虫的基本理念,掌握爬虫爬取的流程有所帮助。入门之后,a56爆大奖在线娱乐们就需要学习一些更加高级的内容和工具来方便a56爆大奖在线娱乐们的爬取。那么这一节来简单介绍一下 requests 库的基本用法 参考文档: https://github.com/kennethreitz/reques 阅读全文
posted @ 2021-11-01 13:19 HaimaBlog 阅读(90) 评论(0) 推荐(0) 编辑
摘要: . 概述 Python有各种各样的系统包和第三方开发的包,让a56爆大奖在线娱乐们的开发变得异常容易。不过也引入了一个问题,不同代码需要的包版本可能是不一样的,a56爆大奖在线娱乐常常回出现这种情况,为了代码B修改了依赖包的版本,代码B能work了,之前使用的代码A就没法正常工作了。因此常常需要对不同的代码设置不同的Python虚拟 阅读全文
posted @ 2021-10-31 20:51 HaimaBlog 阅读(161) 评论(0) 推荐(0) 编辑
摘要: [TOC] # ubuntu安装pyenv 管理多版本Python ## 参考文档: https://www.jianshu.com/p/731fac7b11a4 https://blog.csdn.net/weixin_39784263/article/details/110279912 http 阅读全文
posted @ 2021-10-31 19:59 HaimaBlog 阅读(1596) 评论(0) 推荐(1) 编辑
摘要: VSCode:所选环境中没有可用的Pip安装程序 然后a56爆大奖在线娱乐尝试格式化a56爆大奖在线娱乐的代码,VSCode说没有安装autopep8,可以通过Pip安装 . 但是,当a56爆大奖在线娱乐尝试通过Pip安装时,它会说 There is no Pip installer available in the selected environm 阅读全文
posted @ 2021-10-31 10:32 HaimaBlog 阅读(933) 评论(0) 推荐(0) 编辑
摘要: 仓库地址: https://gitee.com/haima1004/docker-lnmp 参考文档: 视频地址: https://www.bilibili.com/video/BV1S54y1B7KW?p=1 更多内容a56爆大奖在线娱乐放在a56爆大奖在线娱乐的博客中了: https://blog.csdn.net/YQXLLWY 阅读全文
posted @ 2021-10-25 00:28 HaimaBlog 阅读(82) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name www.aa.cn bbb.cn; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; root /www/wwwroot/dssj.haimait.com 阅读全文
posted @ 2021-10-17 10:45 HaimaBlog 阅读(273) 评论(0) 推荐(0) 编辑
摘要: [TOP] 视频学习地址: https://www.bilibili.com/video/BV1hx411V7LH?p=8 记忆宫殿类型 示例一 屋内房间十个位置 需要记忆的十个单词 实体记录 对应的单词摆放 记忆之家(p8) 十个房间 十个房间实体 房间一 房间二 7:猴子 8:台灯 9:电脑 1 阅读全文
posted @ 2021-10-06 23:21 HaimaBlog 阅读(4136) 评论(0) 推荐(0) 编辑
摘要: 一、概述 官方的math 包中提供了取整的方法,向上取整math.Ceil() ,向下取整math.Floor() 二、用法 package main import ( "fmt" "math" ) func main(){ x := 1.1 fmt.Println(math.Ceil(x)) // 阅读全文
posted @ 2021-10-06 20:40 HaimaBlog 阅读(3591) 评论(0) 推荐(0) 编辑
摘要: GoTests工具自动化test使用 1.插件包地址: https://github.com/cweill/gotests 安装 go get -u github.com/cweill/gotests/... 会在go.mod里引入插件包 2.为选择的方法创建单元测试方法 3.测试单个函数方法 3. 阅读全文
posted @ 2021-10-06 18:37 HaimaBlog 阅读(259) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 参考文档 xpath helper /ChevisZhang/p/12869582.html http://c.biancheng.net/python_spider/xpath-helper.html XPath Helper使用教程 阅读全文
posted @ 2021-09-30 15:03 HaimaBlog 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Linux curl命令使用代理、以及代理种类介绍 /panxuejun/p/10574038.html 测试代理的方法: curl -x ip:port http://api.ipaddress.com/myip curl -x socks5://us 阅读全文
posted @ 2021-09-30 14:34 HaimaBlog 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 手把手教你整Win10的Linux子系统(Ubuntu) https://www.bilibili.com/read/cv7770224/ 设置root用户的密码 可以通过 sudo passwd root,按提示设置root用户的密码。 查年系统信息 root@wanghaima-PC:/mnt/ 阅读全文
posted @ 2021-09-26 10:02 HaimaBlog 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 学习视频: https://www.bilibili.com/video/BV1Sg411T7TV?p=69 学习资料下载: 链接: https://pan.baidu.com/s/1Yk4GemFRmZ9s44fTYABIwA 密码: ns6e 阅读全文
posted @ 2021-09-25 14:48 HaimaBlog 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 终极解决方案 http://tool.chinaz.com/dns?type=1&host=github.com&ip= github.com vim /etc/hosts 添加下面内容 66.249.89.104 github.com 阅读全文
posted @ 2021-09-21 00:54 HaimaBlog 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://mp.weixin.qq.com/s/56Dp3pM0BMyH2GZMGEsmCQ 阅读全文
posted @ 2021-09-14 16:26 HaimaBlog 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 卡死20分钟以上的任务 #!/bin/bash HOST="127.0.0.1" PORT="3306" USERNAME="root" PASSWORD="123456" DBNAME="fofapro" #定时删除user_id = 100063403 卡死20分钟以上的任务 update_sq 阅读全文
posted @ 2021-09-13 17:14 HaimaBlog 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页