12 2024 档案
摘要:[root@localhost ~]# man cp #enter向下,q退出 [root@localhost ~]# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin [root@localhost ~]#
阅读全文
摘要:[root@localhost demo]# rm a.txt #删除普通文件 rm: remove regular empty file ‘a.txt’? n [root@localhost demo]# rm a.txt b.txt #一次性删除多个文件 rm: remove regular e
阅读全文
摘要:[root@localhost demo]# ls aaa a.txt [root@localhost demo]# mv ./a.txt ./aaa #移动文件到另一个文件夹 [root@localhost demo]# ls aaa a.txt [root@localhost demo]# ls
阅读全文
摘要:[root@localhost demo]# cp 1.txt ./aaa/ #复制放入其他文件夹,保留源文件名 [root@localhost demo]# ls aaa/ 1.txt [root@localhost demo]# cp 1.txt ./aaa/2.txt #复制文件放入其他文件夹
阅读全文
摘要:[root@localhost bbb]# touch 1.txt #创建文件 [root@localhost bbb]# ll total 0 -rw-r--r--. 1 root root 0 Dec 29 22:58 1.txt [root@localhost bbb]# touch {2.t
阅读全文
摘要:[root@localhost demo]# mkdir demo1 #创建文件夹 [root@localhost demo]# mkdir {aaa,bbb,ccc,ddd} #同时创建多个同级目录的文件夹 [root@localhost demo]# ll total 0 drwxr-xr-x.
阅读全文
摘要:[root@localhost /]# cd /etc #更改目录 [root@localhost etc]# cd .. #上一级目录 [root@localhost /]# cd - #上一次的工作目录 /etc [root@localhost etc]# cd ~ #当前登录的用户家目录 [r
阅读全文
摘要:[root@localhost ~]# cat /etc/resolv.conf # Generated by NetworkManager nameserver 8.8.8.8 [root@localhost ~]# hostname localhost.localdomain [root@loc
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:步骤1: 关闭防火墙 关闭selinux,0表示临时关闭 永久关闭selinux,需要重启机器才能生效 步骤2: 查看本地yum源是不是好着的 步骤3: 软件三部曲 查看talnet相关的软件包 检查是否安装xinetd服务 同时安装talnet服务端和xinetd两个软件包 确认是否安装成功 查看
阅读全文
摘要:一、禁止root用户远程登录 了解软件相关知识,先找到server端的配置文件 rpm -ql 查看指定的软件包安装的所有目录和文件 步骤1: 备份配置文件 步骤2: 修改配置文件 搜索关键字Root定位到下方位置,修改圈红的配置为no 步骤3: 修改配置文件后,需要重启服务: 步骤4: 测试,客户
阅读全文
摘要:修改主机名: hostname 主机名 修改ip地址: vim /etc/sysconfig/network 重启网络: service network restart 确保在同一网段,可以两台机器可以ping通 需求:client端有一个用户user01,该用户使用root用户免密码登录serve
阅读全文
摘要:1.本地需要一个镜像文件,将镜像挂载到本地空目录 2.上一步骤挂载后,使用df -Th,正常情况vmware会自动挂载上镜像但是我这里没有,不确定是不是最小安装导致的,下面是没有挂载出来的界面 3.接着执行以下代码即可 [root@localhost /]# blkid #查看下刚刚插入的OS镜像文
阅读全文
摘要:1配置Server URL为https://start.aliyun.com 2继续配置以下内容 3配置springboot的版本,勾选启动依赖 4配置maven仓库后刷新依赖 5启动项目,我本地自动生成了以下三个文件爆红,可以放在下图的位置就不爆红了
阅读全文