当前位置:网站首页>Rhce第二天
Rhce第二天
2022-07-28 21:46:00 【cxy003344】
1.实现免密登录
产生公钥和私钥
ssh-keygen -t rsa

复制该公钥文件到服务端的该目录下:
ssh -copy-id 指定服务器
![]()
指定服务器
实现免密登录

Windows连接到Linux免密登录

上传文件
追加


2.设置只允许student1, student2用户登录

3.get和post的区别
4.HTTP状态码,常用的状态码有哪些?
状态代码:由三位数字组成,第一个数字定义了响应的类别,且有五种可能取值。
1xx:指示信息 —— 表示请求已接收,继续处理
2xx:成功 —— 表示请求已被成功接收、理解、接受
3xx:重定向 —— 要完成请求必须进行更进一步的操作
4xx:客户端错误 —— 请求有语法错误或请求无法实现
5xx:服务器端错误 —— 服务器未能实现合法的请求
常见状态代码、状态描述的说明如下:
503 Server Unavailable:服务器当前不能处理客户端的请求,一段时间后可能恢复正常
500 Internal Server Error:服务器发生不可预期的错误
404 Not Found:请求资源不存在,举个例子:输入了错误的URL
403 Forbidden:服务器收到请求,但是拒绝提供服务
401 Unauthorized:请求未经授权,这个状态代码必须和 WWW-Authenticate 报头域一起使用
400 Bad Request:客户端请求有语法错误,不能被服务器所理解200 OK:客户端请求成功
5.HTTP请求报文和响应报文
http请求报文由请求行、请求头部、空行和请求报文主体几个部分组成:
http响应报文由起始行、响应头部、空行和响应报文主体这几个部分组成:
6.HTTP是如何保持连接状态的
状态保持的方法有两种:cookie+session实现和token实现
一.cookie+session实现
cookie:
Cookie是由服务器端生成,发送给浏览器,浏览器会将Cookie的key/value保存到某个目录下的文本文件内,下次请求同一网站时自动发送该Cookie给服务器Cookie可以用来在某个WEB站点会话间持久的保持状态
session:
Session是另一种记录客户状态的机制,基于Cookie实现,不同的是Cookie保存在客户端浏览器中,而Session保存在服务器上客户端浏览器访问服务器的时候,服务器把客户端信息以某种形式记录在服务器上,这就是Session,客户端浏览器再次访问时只需要从该Session中查找该客户的状态就可以了。
边栏推荐
- Price for volume has encountered "six consecutive declines" in sales. Can Volvo, which is no longer safe, turn around?
- 1314_串口技术_RS232通信基础的信息
- 可视化全链路日志追踪
- What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution
- Several common methods of SQL optimization
- 被忽视的智能电视小程序领域
- The Gerrit local code is associated to the remote warehouse
- IOS interview
- String string
- 欲要让数字零售继续发挥作用,我们需要对数字零售赋予新的内涵和意义
猜你喜欢

NVM use... Exit status garbled

行泊一体迎爆发期,抢量产还是修技术护城河?
![[image segmentation] vein segmentation based on directional valley detection with matlab code](/img/82/7b7b761c975cd5c2f5b8f3e43592d2.png)
[image segmentation] vein segmentation based on directional valley detection with matlab code

Why did "you" become a test / development programmer? The value of your existence

The front mounted ADAS camera in parking increased by 54.15% year-on-year, with TOP10 suppliers taking the lead

The industry's first cloud native security detection dual model! Safety dog heavyweight report appears at the digital China Construction Summit

如何开一家盈利的健身房?我用1年回本的经验告诉你,别谈恋爱

What if win11 quick copy and paste cannot be used? Win11 shortcut copy and paste cannot be used

There are four ways for Nacos to configure hot updates and multiple ways to read project configuration files, @value, @refreshscope, @nacosconfigurationproperties

【物理应用】大气吸收损耗附matlab代码
随机推荐
RouYi-Cloud平台 ---项目的启动、登录功能是怎么实现的、怎么样创建新模块
The applet vant webapp component is missing, and the referenced component reports an error
[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code
ACM SIGIR 2022 | 美团技术团队精选论文解读
VR全景创业如何开拓市场?如何让创业之路更加顺畅?
Programmer growth Chapter 30: artifact of identifying true and false needs
The functions and differences of display, visibility and overflow
Sqlilabs-3 (entry notes)
Performance optimized APK slimming
以流量为主导的数字零售的发展模式,仅仅只是一个开始
6 open source tutorials of super conscience!
All aspect visual monitoring of istio microservice governance grid (microservice architecture display, resource monitoring, traffic monitoring, link monitoring)
Form label
mgr.exe病毒导致启动程序启动失败
当初的“你“为什么做测试/开发程序员?自己存在的价值......
Runloop, auto release pool, thread, GCD
Objc4-841.13 debuggable / compiled source code update
pg_rman的安装与使用《postgresql》
字节8年女测试总监工作感悟—写给想转行或即将进入测试行业的女生们...
After reading MySQL database advanced practice (SQL xiaoxuzhu)
