01 2019 档案

摘要:切为root, yum install zlib-devel gcc make git autoconf autogen guile-devel automake pkgconfig -y yum install libuuid-devel zlib-devel -y wget https://gi 阅读全文
posted @ 2019-01-31 17:40 ducklyl 阅读(665) 评论(0) 推荐(0)
摘要:shell指令操作memcached,可以用来直接测试memcached. 初始值为1000 #set test-value =1000printf "set test-value 0 0 4\r\n1000\r\n" | nc 127.0.0.1 11211 #get test-valueprin 阅读全文
posted @ 2019-01-23 10:43 ducklyl 阅读(187) 评论(0) 推荐(0)
摘要:切换到root账户, #安装yum 源 yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm #安装postgresql11 yu 阅读全文
posted @ 2019-01-21 12:10 ducklyl 阅读(1025) 评论(0) 推荐(0)
摘要:字符串是编程时涉及到的最多的一种数据结构,对字符串进行操作的需求几乎无处不在。比如判断一个字符串是否是合法的Email地址,虽然可以编程提取@前后的子串,再分别判断是否是单词和域名,但这样做不但麻烦,而且代码难以复用。 正则表达式是一种用来匹配字符串的强有力的武器。它的设计思想是用一种描述性的语言来 阅读全文
posted @ 2019-01-16 15:55 ducklyl 阅读(107) 评论(0) 推荐(0)
摘要:Centos7.5自带为/usr/bin/python2.7,需升级到python3.6,安装非常简单,直接通过yum. #centos7 pythonyum install epel-release -yyum install https://centos7.iuscommunity.org/iu 阅读全文
posted @ 2019-01-14 12:16 ducklyl 阅读(375) 评论(0) 推荐(0)
摘要:Centos7通过yum 安装的Ruby 是2.0版本。版本较低,需要升级到2.5以上版本。 #yum 安装ruby yum install ruby #查看ruby版本 ruby -v 以下开始升级处理 #添加aliyun镜像 gem sources -a http://mirrors.aliyu 阅读全文
posted @ 2019-01-08 14:31 ducklyl 阅读(1479) 评论(0) 推荐(0)