波神

导航

2016年11月19日 #

在centos7.1上安装systemd

摘要: 1.检查本地systemd的版本 [admin@localhost ~]$ systemctl --version systemd 208 +PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ 2.获 阅读全文

posted @ 2016-11-19 12:54 波神 阅读(3532) 评论(0) 推荐(0) 编辑

Shell 中expr的使用

摘要: 1.expr命令一般用于整数值,其一般格式为:expr argument operator argument一般的用法是使用expr做算术运算,如:[root@centos ~]# expr 10 + 2030$expr 30 / 3 / 25(注意运算符左右都有空格 ,如果没有空格表示是字符串连接 阅读全文

posted @ 2016-11-19 11:07 波神 阅读(888) 评论(1) 推荐(0) 编辑

Shell获取当前路径

摘要: PRG="$0" while [ -h "$PRG" ]; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG= 阅读全文

posted @ 2016-11-19 11:06 波神 阅读(6165) 评论(0) 推荐(0) 编辑

2016年11月18日 #

linux设置环境变量

摘要: 显示环境变量HOME $ echo $HOME /home/redbooks 2. 设置一个新的环境变量hello $ export HELLO="Hello!" $ echo $HELLO Hello! 3. 使用env命令显示所有的环境变量 $ env HOSTNAME=redbooks.saf 阅读全文

posted @ 2016-11-18 19:40 波神 阅读(1368) 评论(0) 推荐(0) 编辑

2016年11月16日 #

vim打开的文件显示行号

摘要: :set number 阅读全文

posted @ 2016-11-16 16:34 波神 阅读(167) 评论(0) 推荐(0) 编辑

centos6.5(64位)离线安装scalr

摘要: 1、下载scalr-server安装备包: 下载地址:http://pan.baidu.com/s/1eSA3dom scalr-server-5.1.0.oss-nightly.20150130043604.74.7f0df7f.9a8df09-el.6-1.x86_64.rpm 2、执行安装命令 阅读全文

posted @ 2016-11-16 16:33 波神 阅读(452) 评论(0) 推荐(0) 编辑

CentOS yum 源的配置与使用(引用)

摘要: http://www.cnblogs.com/mchina/archive/2013/01/04/2842275.html 阅读全文

posted @ 2016-11-16 15:36 波神 阅读(194) 评论(0) 推荐(0) 编辑

2016年11月14日 #

Spring MVC之@RequestMapping 传递数组

摘要: 1、前台: 2、后台: 阅读全文

posted @ 2016-11-14 20:08 波神 阅读(1445) 评论(0) 推荐(0) 编辑

2016年11月10日 #

打开和关闭防火墙

摘要: 查看、关闭及开启防火墙命令 一、redhat下1)永久性生效,重启后不会复原 开启: chkconfig iptables on 关闭: chkconfig iptables off 2)即时生效,重启后复原 开启: service iptables start 关闭: service iptabl 阅读全文

posted @ 2016-11-10 10:01 波神 阅读(795) 评论(0) 推荐(0) 编辑

2016年11月9日 #

解决Jedis链接报超时异常和connection reset异常的方法

摘要: 一、链接池配置 二、JedisSentinelPoolConfig类 三、JedisHelper类 阅读全文

posted @ 2016-11-09 20:01 波神 阅读(1786) 评论(0) 推荐(0) 编辑