摘要: 以下为8月23日左右记录的,没有发布.今日整理大概记录下. 安装依赖包 yum install -y curl policycoreutils-python openssh-server openssh-clients postfix # 开启sshd服务systemctl enable sshd 阅读全文
posted @ 2019-11-25 10:50 Aliwall 阅读(635) 评论(0) 推荐(0)
摘要: # 查看是否安装mysql rpm -qa | grep -i mysql # 如果有,需要卸载旧版本Mysql及相关依赖包 rpm -e MySQL-client-*** # 查看开机启动服务列表状态 systemctl list-unit-files # 禁用mysql服务 systemctl 阅读全文
posted @ 2019-08-22 20:06 Aliwall 阅读(6509) 评论(2) 推荐(0)
摘要: # 添加 创建 更新 时间字段 ALTER TABLE `表名` ADD COLUMN `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `最后一个列名`, ADD COLUMN `update_time` timesta 阅读全文
posted @ 2019-08-17 11:33 Aliwall 阅读(11595) 评论(0) 推荐(2)
摘要: 1 # -*-coding:utf-8 -*- 2 3 import random 4 5 # 返回一个随机的请求头 headers 6 def getheaders(): 7 # 各种PC端 8 user_agent_list_2 = [ 9 # Opera 10 "Mozilla/5.0 (Wi 阅读全文
posted @ 2019-08-16 22:58 Aliwall 阅读(968) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-08-16 21:30 Aliwall 阅读(322) 评论(0) 推荐(0)
摘要: 使用yum 遇到如下错误. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 因为RedHat yum源是收费的,没有注册的R 阅读全文
posted @ 2019-08-16 19:08 Aliwall 阅读(4205) 评论(0) 推荐(0)
摘要: 安装python3后需要重新配置yum 配置yum vim /usr/bin/yum #! /usr/bin/python #修改前#! /usr/bin/python2 #修改后 vim /usr/libexec/urlgrabber-ext-down #! /usr/bin/python #修改 阅读全文
posted @ 2019-08-16 18:32 Aliwall 阅读(757) 评论(0) 推荐(0)
摘要: redhat7.6 默认安装了python2.7. 查看已安装python情况 cd / # 定位到根目录 whereis python # 查看python所在目录 /usr/bin cd /usr/bin # 切到python目录 ll python* # 查看python开头的相关文件详情mv 阅读全文
posted @ 2019-08-16 18:11 Aliwall 阅读(1842) 评论(0) 推荐(0)
摘要: 安装wget下载工具 # 查看是否安装wget rpm -qa | grep wget #使用yum安装wget yum -y install wget 使用wget工具下载到 /usr/share/tomcat/webapps/jenkins/ # 先在webapps目录下使用新建 jenkins 阅读全文
posted @ 2019-08-16 17:25 Aliwall 阅读(413) 评论(0) 推荐(0)
摘要: 使用yum 安装java # 首先查看是否安装yum rpm -qa | grep yum yum-3.4.3-161.el7.noarch # 显示这个表示已经安装了. # 查看是否安装java,没有的话使用下面的命令安装 rpm -qa | grep java yum -y install ja 阅读全文
posted @ 2019-08-16 17:06 Aliwall 阅读(1118) 评论(0) 推荐(0)