-
网络属性配置(二)
本文接上篇。。。 ip address -protocol address management. ip address add -add new protocol address ip addr add IFADDR label NAME :为额外添加的地址指明接口别名 [broadcast ADDRESS]: 广播地址;会根据IP和ENTMASK自动计算得到; [scope SCOPE_VALUE]; glob…
-
网络配置详解(一)
Linux网络属性配置 ifcfg命令家族:ifconfig, route, netstat ifconfig命令: ifconfig [INTERFACE] # ifconfig -a 显示所有接口,包括inactive状态的接口; ifconfig interface [aftype] opti…
-
计算机网络基础及常用工具
Linux网络属性配置 计算机网络: TCP/IP: 协议栈(使用) ISO, OSI: 协议栈(学习) MAC:Media Access Control 48bits: ICANN:24bits. 2^24 地址块:2^24 &nb…
-
linux使用yum对程序包管理相关知识
yum客户端: 配置文件: /etc/yum.conf: 为所有仓库提供公共配置 /etc/yum.repos.d/* .repo: 为仓库的指向提供配置 仓库的定义: [r…
-
chmod 没有执行权限的解决办法 [转载http://www.fblinux.com/?p=30]
chmod没有权限,貌似就算是root用户也无法授权,这可咋办?chmod是设置权限的命令,但是自身没有了执行权限,那么就表示没有办法更改其他命令的权限,也没有办法改变自己的权限。 1 2 3 4 [root@localhost ~]# ll /bin/chmod ———-. 1 root root 48712 Oct 15 2014 /bin/chmod [root@localhost ~]# chmod 755 /bin/chmod -bash: /bin/c…
-
bash脚本编程
bash脚本编程之用户交互: 脚本参数 用户交互:通过键盘输入数据 read [option]…[name]… -p: "PROMPT" -t: TIMEOUT #!/bin/bash # read -p "Enter a username: &quo…
-
脚本编程部分_第十周练习
Q1:写一个脚本: (1) 能接受四个参数:start, stop, restart, status;start: 输出“starting 脚本名 finished.”其余参数类似; (2) 其它任意参数,均报错退出; #!/bin/bash # read -p "The following choices can be allowed.[start/stop/restart/status]" v…