linux
chihtung_hsu
这个作者很懒,什么都没留下…
展开
-
shell文本处理工具
1.grep grep grep -E = egrep ##grep 格式## grep 匹配条件 处理文件 grep root passwd #过滤root关键字 grep ^root passwd ##以root开头 grep root$ passwd ##以root结尾 grep -i root passwd ##后略大小写 grep -E "\<root" pass...原创 2020-04-11 07:03:56 · 199 阅读 · 0 评论 -
linux中的火墙
1.火墙介绍 1.netfilter 2.iptables 3.iptables|firewalld 2.火墙管理工具切换 在rhel8中默认使用的是firewalld firewalld----->iptables dnf install iptables-services -y systemctl stop firewalld systemctl disable firewal...原创 2020-04-11 07:03:14 · 119 阅读 · 0 评论 -
shell中常用的基础命令
shell中常用的基础命令 1.diff diff [options] files|directorys 输出信息: [num1,num2][a|c|d][num3,num4] num1,num2 ##第一个文件中的行 a ##添加 c ##更改 d ##删除 < ##第一个文件中的内容 ##第二个文件中的内容 num3,num4 ##第二个文件中的行 常用参数: -b ##忽略空格 -...原创 2020-03-30 13:26:42 · 150 阅读 · 0 评论 -
linux中的nfs
NFS Net File System nfs基本信息 nfs-utils ##安装包 nfs-server ##服务脚本 /etc/exports ##共享配置文件 nfs的启用 systemctl start nfs-server firewall-cmd --permanent --add-service=rpc-bind firewall-cmd --permanent --add-ser...原创 2020-03-27 16:17:37 · 90 阅读 · 0 评论 -
linux下的samba服务(cifs文件系统共享)
1. samba服务简介 作用: windows系统共享文件时用到的协议smb smb是由miscrosoft+sun Linux cifs 2.samba基本信息 服务启动脚本: smb.service 主配置目录: /etc/samba 主配置文件: /etc/samba.conf 安全上下文: samba_share_t 端口: 139 445 安装包: samba samba-common...原创 2020-03-18 18:48:58 · 230 阅读 · 0 评论 -
linux中的 dns服务器部署
dns服务器部署 1.关于dns的名词解释 dns: domain name service(域名解析服务) #关于客户端:# /etc/resolv.conf ##dns指向文件 host www.baidu.com ##地址解析命令 dig www.baidu.com ##地址详细解析信息命令 A记录 ##ip地址叫做域名的Address 记录 SOA ##授权起始主机 dns 顶级 . 1...原创 2020-03-17 16:48:05 · 182 阅读 · 0 评论 -
linux下的数据库基本管理
1.数据库的介绍 1.数据库 数据库就是个高级的表格软件 2.常见数据库 Mysql Oracle mongodb db2 sqlite sqlserver … 3.Mysql (SUN -----> Oracle) 4.mariadb :mysql中的一个分支 2.mariadb的安装 dnf install mariadb-server.x86_64 -y 3.软件基本信息 ...原创 2020-03-12 13:52:04 · 174 阅读 · 0 评论 -
linux中Apach服务器构建
1.Apache的作用 在web被访问时通常使用http://的方式 http:// ##超文本传输协议 超文本传输协议提供软件: Apache nginx Apache:重量级,同步阻塞模式,稳定性高 nginx:轻量级,异步非阻塞模式,速度快 2.Apache的安装 dnf install httpd.x86_64 -y 3.Apache的启用 systemctl enable...原创 2020-03-07 18:25:08 · 310 阅读 · 0 评论