随笔分类 - linux
摘要:firewalld 服务管理 1、安装firewalld yum -y install firewalld 2、开机启动/禁用服务 systemctl enable/disable firewalld 3、启动/关闭服务 systemctl start/stop firewalld 4、查看服务状态
阅读全文
posted @ 2020-06-27 22:51
山的那一边
摘要:ls 常用参数 -l :列出长数据串,包含文件的属性与权限数据等 -a :列出全部的文件,连同隐藏文件(开头为.的文件)一起列出来(常用) -d :仅列出目录本身,而不是列出目录的文件数据 -h :将文件容量以较易读的方式(GB,kB等)列出来 -R :连同子目录的内容一起列出(递归列出),等于该目
阅读全文
posted @ 2020-06-27 21:32
山的那一边
摘要:配置Linux网关的主机的IP:IP1:192.168.233.50 默认网关:192.168.233.1IP2:10.21.0.1 1,编辑内核配置文件,开启转发vim /etc/sysctl.conf,使net.ipv4.ip_forward = 1 2,使内核生效sysctl -p 3,清空防
阅读全文
posted @ 2019-09-23 23:30
山的那一边
摘要:瑞士军刀netcat官网:http://netcat.sourceforge.net/ 安装:yum install -y nc查询:rpm -q nc 语法:nc [-hlnruz][-g<网关...>][-G<指向器数目>][-i<延迟秒数>][-o<输出文件>][-p<通信端口>][-s<来源
阅读全文
posted @ 2019-04-21 17:37
山的那一边
摘要:常用的方法如下: 根据下面显示的信息,可以判断当前OS类型为redhat。 1,cat /etc/redhat-release ※centos上也可以执行此命令。 2, cat /proc/version 3,cat /etc/os-release 4,查看linux内核版本 uname -rm 5
阅读全文
posted @ 2019-03-17 23:41
山的那一边
摘要:1 安装yum install 全部安装yum install package1 安装指定的安装包package1yum groupinsall group1 安装程序组group1 2 更新和升级 yum update 全部更新 yum update package1 更新指定程序包package
阅读全文
posted @ 2019-01-11 11:42
山的那一边
摘要:1.安装 yum-priorities //事先查看是否已安装 rpm -q yum-priorities#yum install yum-priorities -y 2.priorities的配置文件是/etc/yum/pluginconf.d/priorities.conf,确认其是否存在。内容
阅读全文
posted @ 2019-01-05 14:13
山的那一边
摘要:★安装OS时,建议提前安装开发组件 CentOS 6:Development Tools、Server Platform DevelopmentCentOS 7:Development Tools、Development and Creative Workstation ★configure脚本(#
阅读全文
posted @ 2018-12-17 17:35
山的那一边
摘要:与fdisk创建MBR分区一样,sgdisk是一个创建GPT分区的工具。 ●gdisk软件包中包含sgdisk命令。 需要事先安装gdisk, ▪Debian和Ubuntu:apt-get install gdisk ▪RedHat/CentOS:yum install gdisk ▪OpenSuS
阅读全文
posted @ 2018-09-10 19:19
山的那一边
摘要:1,新建一个用户; #useradd xxx 2,为新用户设置密码; #passwd xxx 3,修改sshd配置文件 #vi /etc/ssh/sshd_config PasswordAuthentication yes #允许用户使用密码进行身份验证PermitRootLogin yes #设置
阅读全文
posted @ 2018-07-30 09:50
山的那一边

浙公网安备 33010602011771号