Linux下安装 Memcached服务器端

2015-5-27 杜世伟 memcache

#!/bin/sh

#Author  :  shiwei.du
#Date    :  2016/04/08


#install libevent
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/
make && make install
cd ..

阅读全文>>

标签: linux memcache memcached

评论(0) 浏览(13156)

./configure: error: SSL modules require the OpenSSL library

2015-5-19 杜世伟 Linux

make: *** No rule to make target `build', needed by `default'. Stop. ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source

with nginx by using --with-openssl= option.


yum -y install openssl openssl-devel

标签: openssl openssl-devel

评论(0) 浏览(4346)

CentOS 7.0关闭默认防火墙启用iptables防火墙

2015-5-16 杜世伟 Linux

操作系统环境:CentOS Linux release 7.0.1406(Core) 64位
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤。

1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

2、iptables防火墙(这里iptables已经安装,下面进行配置)
vi/etc/sysconfig/iptables #编辑防火墙配置文件
# sampleconfiguration for iptables service
# you can edit thismanually or use system-config-firewall
# please do not askus to add additional ports/services to this default configuration

阅读全文>>

标签: iptables centos firewall

评论(0) 浏览(14750)

phpize Cannot find autoconf

2015-5-10 杜世伟 Php

Centos下执行phpize提示“Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this scrIPt.”
原因:缺少autoconf
解决方法:
yum install autoconf

标签: PHP phpize autoconf

评论(0) 浏览(16572)

vim 删除指定的行

2015-5-3 杜世伟 Vim

vim 删除指定的行

#-----命令行模式下------

1.删除以#开头的行:    
g/^#.*$/d 
2.删除以//开头的行:    
g/^\/\/.*$/d
3.删除空白行:
g/^$/d
4.刪除包含有空格組成的空行
g/^\s*$/d
5.删除以空格或tab開頭到結尾的空行

g/^[ |\t]*$/d

原创转载请注明来源:https://www.dushiwei.cn/post/461

阅读全文>>

标签: linux vim

评论(0) 浏览(5156)

Powered by emlog 沪ICP备2023034538号-1