一:xshell
什么是xshell?
xshell是一个远程执行命令的客户端程序,对应的服务端程序openssh-sever(默认22)
套接字客户端------------------网络----------------套接字服务端
xshell openssh-sever
为何要用xshell?
远程管理
如何用xshell?
mac:iTerm2
打开命令行终端
ssh root@服务器的ip地址
windows:xshell
缓冲区设置:控制内容显示行数
上下翻页
shift+PgUP
shift+PgDn
远程连接失败排错
测试网络连通性:ping 服务端ip地址
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
关闭Selinux
setenforce 1 # Enforcing-》加载并生效
setenforce 0 # Permissive-》加载但是不生效
# Disabled ->不加载
vim /etc/sysconfig/selinux
修改SELINUX=disabled
查看Selinux的状态
getenforce
systemctl restart sshd # 开启服务端程序
systemctl restart network
二:操作系统启动流程
加电
启动BIOS,检测启动项目
读取启动盘第一个扇区512Bytes,包含是MBR主引导记录(446引导程序bootloader->grub 64分区信息 2结束标志)
grub启动<