摘要: 安装jdk 一、开启网络,ifconfig指令查看ip 二、修改主机名 hostnamectl set-hostname hadoop 三、查看防火墙状态并打开防火墙 1.firewall-cmd --state查看防火墙状态 2.systemctl start iptables.service打开 阅读全文
posted @ 2022-04-09 21:06 森林深处有一道光 阅读(67) 评论(0) 推荐(0)
摘要: 创建存储过程的外壳 delimiter $ create procedure test(userId int) begin end $ delimiter ; 存储过程if(begin 和 end $之间) 1、声明变量username declare username varchar(32) de 阅读全文
posted @ 2022-04-09 20:41 森林深处有一道光 阅读(41) 评论(0) 推荐(0)
摘要: 命令行下载jar包 pip install xxxxxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com使用上面的命令下载wheel、lxml、twisted、pywin32、scrapy五个jar包,xxxxxx内填包 阅读全文
posted @ 2022-04-03 16:26 森林深处有一道光 阅读(29) 评论(0) 推荐(0)
摘要: ssh:安全外壳协议 端口号默认是22 如果要修改,则需要修改ssh服务的配置文件 修改范围:0-65535 服务启动/终止/重启 service sshd start/stop/restart /etc/init.d/sshd start/stop/restart 获取服务器ip地址:ifconf 阅读全文
posted @ 2022-04-03 14:47 森林深处有一道光 阅读(43) 评论(0) 推荐(0)
摘要: 1.创建视图 create view 视图名(视图列1,视图列2) 视图列名为中文 as select * from 表名 没有指定那一列,从第一个列名开始创建 with check option; 2.添加视图数据、删除视图、查询视图、修改视图 和表一样的用法 3.创建多表视图 create vi 阅读全文
posted @ 2022-04-03 11:55 森林深处有一道光 阅读(41) 评论(0) 推荐(0)
摘要: chmod +x test.sh #给test文件添加权限 ./test.sh #运行桌面上的文件 /home/cx/test2.sh #运行指定目录下的文件 #!/bin/bash #指定告知系统当前这个脚本要使用的shell解释器 a="hello" 定义变量 echo $a 输出变量 dt=` 阅读全文
posted @ 2022-03-19 16:04 森林深处有一道光 阅读(43) 评论(0) 推荐(0)
摘要: 1、单独创建索引 create index 索引名 on 表名(要创建索引的列名); create index index_name on emp(emp_name); 2、修改表结构创建索引 alter table 表名 add index 索引名(要创建索引的列名); alter table e 阅读全文
posted @ 2022-03-19 14:11 森林深处有一道光 阅读(36) 评论(0) 推荐(0)
摘要: from urllib import request import re page=54 #匹配段子吧的第五十四页 url="http://tieba.baidu.com/f?kw=%E6%AE%B5%E5%AD%90&ie=utf-8&pn="+str(page) try: #请求头 header 阅读全文
posted @ 2022-03-19 11:50 森林深处有一道光 阅读(47) 评论(0) 推荐(0)
摘要: 爬虫入门程序import urllib.request 定义网址 url="http://www.baidu.com" 访问网址 responsel=urllib.request.urlopen(url) 打印状态码 print(responsel.getcode()) 读取页面内容 print(r 阅读全文
posted @ 2022-03-11 21:49 森林深处有一道光 阅读(76) 评论(0) 推荐(0)
摘要: Linux基础指令 一、ls ls:列出当前目录下的所有文件/文件夹的名字 ls /root:列出root下的所有文件/文件夹的名字 ls-l:以详细列表的形式展示 ls-la、ls-a:显示所有文件/文件夹(包含了隐藏文件/文件夹) ls-lh /root:列出root下的所有文件/文件夹的名称, 阅读全文
posted @ 2022-03-11 16:53 森林深处有一道光 阅读(132) 评论(0) 推荐(0)