`
文章列表
ssh安装:yum install openssh-server netstat安装:  yum install net-tools 开机启动设置 ssh chkconfig  sshd on centos7 systemctl enable sshd 用户获取sudo权限 a)usermod -a -G wheel 用户名 b)vi /etc/sudoers ## Same thing without a password %wheel  ALL=(ALL)       NOPASSWD: ALL cos4    ALL=(ALL)       NOPASSWD: ALL Secure ...
1、if-then结构 使用方法: if command then command       #次区域可以是多个命令行 fi 2、if-then-else if command then commands else commands fi else部分同then一样,可以使用多命令行,同时,else中还可以嵌套if-then-fi子模块 else的另一种写法,使用elif,elif-then可以多次使用来进行条件判断 if  command1 then commands elif  command2 then more commands [ el ...

Linux 环境变量

全局变量 显示变量命令:printenv,env 查看变量值: printenv JAVA_HOME 显示 /usr/java/jdk1.8.0_51 echo $JAVA_HOME 本地变量 定义本地变量后,变量只能在当前shell中使用 [@localhost ~]$ my_var="hello" [@localhost ~]$ echo $my_var  hello [@localhost ~]$ bash [@localhost ~]$ echo $my_var   [@localhost ~]$ exit exit [@local ...
切换到root账户 1、 vi /etc/sysconfig/SuSEfirewall2 2、 9.) # Which TCP services _on the firewall_ should be accessible from # untrusted networks? # # Format: space separated list of ports, port ranges or well known #         service names (see /etc/services) # # Examples: "ssh", "123 514" ...
  双硬盘分别安装win7、fedora,激活win7后导致grub引导失败,单独从硬盘启动正常,经验证是激活时安装的"SLIC"所导致,使用无SLIC安装的激活工具后,系统引导恢复正常

Linux 自动设置IP

键入ifconfig后不显示网卡eth0时 执行 ifconfig eth0 up 执行 dhclient //自动获取ip
Global site tag (gtag.js) - Google Analytics