sshd_config配置注释
摘要:# $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $ # This is the sshd server system-wide configuration file. See# sshd_config(5) for more in
阅读全文
posted @
2018-11-27 12:32
新美好时代
阅读(811)
推荐(0)
Linux Shell流程例子
摘要:#!/bin/bash read -p "input a dight:"echo $REPLY DATE=`date`echo "DATE is ${DATE}" USERS=`who |wc -l`echo "LOGIN in user is ${USERS}" UP=`date;uptime`e
阅读全文
posted @
2018-06-17 11:10
新美好时代
阅读(226)
推荐(0)
Linux中gzip、bzip2、zip、unzip、tar使用介绍
摘要:压缩解压缩命令介绍.gz 压缩为gzip文件.bz2 压缩为bzip2文件.tar 打包文件,将多个文件合并成一个目录.tar.gz 先打成tar包,再压缩为gzip文件.tar.bz2 先打成tar包,再压缩为bzip2文件.tar.Z 先打成tar包,再压缩为Z文件.rar压缩为rar文件 压缩
阅读全文
posted @
2018-06-17 11:06
新美好时代
阅读(549)
推荐(0)
firewalld的基本使用
摘要:1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是
阅读全文
posted @
2018-06-17 11:04
新美好时代
阅读(190)
推荐(0)
usermod命令
摘要:usermod-a|--append ##把用户追加到某些组中,仅与-G选项一起使用 -c|--comment ##修改/etc/passwd文件第五段comment -d|--home ##修改用户的家目录通常和-m选项一起使用 -e|--expiredate ##指定用户帐号禁用的日期,格式YY
阅读全文
posted @
2018-06-17 11:03
新美好时代
阅读(368)
推荐(0)
npm常用命令
摘要:#升级NPMnpm install npm -g #安装模块#本地安装npm install <Module Name> #全局安装npm install <Module Name> -g #查看安装信息npm list -g #查看某个模块的版本号npm list <Module Name> #查
阅读全文
posted @
2018-03-14 15:02
新美好时代
阅读(227)
推荐(0)
shell框架
摘要:#!/bin/bash#注释#注释#环境变量相关,如下PATH=/sbin:/bin:/usr/bin:/usr/sbin #引入库函数,如下,类似于c语言的#include "*.h" . /etc/init.d/functions #获取相关配置信息,不是必须的,如test -f /etc/sy
阅读全文
posted @
2018-03-13 20:30
新美好时代
阅读(306)
推荐(1)
Linux shell例子
摘要:#!/bin/bash read -p "input a dight:"echo $REPLY DATE=`date`echo "DATE is ${DATE}" USERS=`who |wc -l`echo "LOGIN in user is ${USERS}" UP=`date;uptime`e
阅读全文
posted @
2018-03-13 20:29
新美好时代
阅读(244)
推荐(0)
Linux if 命令判断条件总结
摘要:Linux if 命令判断条件总结Linux if命令 关于文件属性的判断式 -a 如果文件存在 -b 如果文件存在,且该文件是区域设备文件 -c 当file存在并且是字符设备文件时返回真 -d 当pathname存在并且是一个目录时返回真 -e 当pathname指定的文件或目录存在时返回真 -f
阅读全文
posted @
2018-03-13 20:19
新美好时代
阅读(1403)
推荐(0)
忘记Centos7.2下root用户密码后的处理方式
摘要:1)重启系统 重新启动系统后并按f2键,进入如下的界面,再按e键。 2)修改启动内核代码 在代码的linux16行中,将ro rhgb的ro修改为rw init=/sysroot/bin/sh。 3)保存修改内核代码 修改完成后,按ctrl+x进入单用户模式,使用命令访问系统:chroot /sys
阅读全文
posted @
2018-03-09 18:40
新美好时代
阅读(332)
推荐(0)
shell流程语句使用介绍
摘要:1)使用if、case、read例子1:#!/bin/bash#读取终端输入的字符read -p "Please input a Number:" nn1=`echo $n|sed 's/[0-9]//g'` #使用if语句进行判断if [ ! -z $n1 ]thenecho "Please in
阅读全文
posted @
2017-10-09 12:19
新美好时代
阅读(249)
推荐(0)
openssl安装介绍
摘要:#因CentOS7默认安装了openssl1.0版本,需要删除该版本,才能安装openssl.1.0.2l版本yum remove -y openssl openssl-devel cd /usr/local/src tar zxvf openssl-1.0.2l.tar.gz cd openssl
阅读全文
posted @
2017-10-09 12:18
新美好时代
阅读(576)
推荐(0)
Linux基础知识介绍
摘要:1、Linux知识说明1)文件位置 1)/etc/inittab2)模式介绍 0:挂起模式-不推荐 1:单用户模式-只有管理员可以进入该模式,可以修改root密码,处理有登录权限而没有修改文件的权限问题 2:多用户模式-不支持文件共享明服务(NFS),一般不使用 3:字符模式-在安装好X11后,可使
阅读全文
posted @
2017-04-09 12:48
新美好时代
阅读(571)
推荐(0)
Linux中grep、sed、awk使用介绍
摘要:linux文件操作命令介绍1)grepgrep 用于在文件中查找符合条件的记录grep 参数 过滤条件 文件过滤的条件中可使用正则表达式-c 显示符合的行数-i 忽略大小写-n 显示符合要求的记录,包含行号-v 显示不符合要求的记录-A n 显示符合要求的记录,及下面的n行-B n 显示符合要求的记
阅读全文
posted @
2017-04-09 12:26
新美好时代
阅读(987)
推荐(0)
Linux中yum、rpm、configure使用介绍
摘要:安装程序命令介绍 安装包选择策略:能上外网:yum方式、绿色方式->不能上外网:rpm方式、configure方式 1、yum命令yum安装包时,会包所依赖的包也会安装到系统,将源换成163的源,解决依赖冲突1)列出系统支持安装的rpm包yum list|more例如:yum-plugin-secu
阅读全文
posted @
2017-04-09 11:49
新美好时代
阅读(920)
推荐(0)
Linux中配置系统参数
摘要:[root@localhost ~]# vim /etc/security/limits.conf root soft nofile 65535root hard nofile 65535* soft nofile 65535* hard nofile 65535 [root@localhost ~
阅读全文
posted @
2017-04-09 11:10
新美好时代
阅读(390)
推荐(0)