Chinaunix首页 | 论坛 | 博客
  • 博客访问: 82805
  • 博文数量: 33
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 217
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-24 17:05
文章分类
文章存档

2016年(2)

2015年(31)

我的朋友

发布时间:2015-10-29 17:10:16

操作系统环境:CentOS Linux release 7.0.1406(Core) 64位CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤。1、关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动firewall-cmd --state #查看默认防火墙状态.........【阅读全文】

阅读(1224) | 评论(0) | 转发(0)

发布时间:2015-10-27 15:44:10

让echo输出带颜色的方法有两种1.在shell脚本中定义颜色变量,使用echo -e调用变量2.定义变量的时候,把echo -e定义到变量中,然后输出变量可以让echo输出显示颜色的shell脚本#!/bin/bash#定义颜色的变量RED_COLOR='\E[1;31m'  #红GREEN_COLOR='\E[1;32m' #绿YELOW_COLOR='\E[1;33m' #黄BLUE_COLOR='\E[1;34.........【阅读全文】

阅读(746) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册