Loading

邢栋博客

“服务器笔记“

centos下安装配置redis

我用的centos版本是6.5 下载软件包 Wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz 在根目录下 新建一个目录 lnmp(用来放配置文件的) 把文件上传上去(我是用ssh传的) 编译: tar zxvf. redis-2.4.17.tar.gz cd redis-2.4.17 make cd src make install 移动文件 便于管理 mkdir -p /usr/local/redis/bin mkdir -p /usr/local/redis/e...

putty连接linux中文乱码问题

vim /etc/sysconfig/i18n 把“LANG=”zh_CN.UTF-8″”改为 “LANG=”zh_CN.GB18030″”,完成后保存重新登录即可。

Oracle VM VirtualBox虚拟机上配置nginx后,本机无法访问

Oracle VM VirtualBox虚拟机上配置nginx后,本机无法访问 在centos6.5 上配置linux+nginx+mysql+php,出现用本机访问虚拟机的时候不能访问的问题 防火墙可以ping通虚拟机,虚拟机也可以ping通防火墙。 做如下处理: [root@localhost html]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT [root@localhost html]# /etc/init.d/iptables save [root@localhost html]#...

yum install nginx 出现warning

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt The GPG keys listed for the "CentOS / Red Hat Enterprise Linux 6 - atomicrocketturtle.com" repository are already installed ...

centos6.5下配置lnmp环境

1.关闭防火墙 [root@CentOS ~]# service iptables stop ps:看到别人用的是[root@CentOS ~]# chkconfig iptables off 2.关闭selinux vi /etc/sysconfig/selinux //将SELINUX=enforcing修改为disabled然后重启生效 3、配置CentOS 6.0 第三方yum源(CentOS默认的标准源里没有nginx软件包) [root@CentOS ~]# yum install wget //下载wget工具 [root@CentOS ...

centos6.5配置网络并能上网

1.先查看网络mac地址 [root@centos ~]# cat /etc/udev/rules.d/70-persistent-net.rules 2.修改主机名称 [root@centos ~]# vim /etc/sysconfig/network 打开文件,修改以下内容并保存 NETWORKING=yes      #使用网络 NETWORKING_IPV6=yes   #使用网络 可不写 HOSTNAME=centos      #设置主机名称 3.修改网卡 [root@centos ~]# vim /etc/sysconfig/networ...

linux下find命令常用方法

1.用文件名查找文件 find -name "MyCProgram.c" 2.用文件名查找文件,忽略大小写 find -iname "MyCProgram.c" 3.使用mindepth和maxdepth限定搜索指定目录的深度 在root目录及其子目录下查找passwd文件 find / -name passwd 在root目录及其1层深的子目录中查找passwd. (例如root — level 1, and one sub-directory — level 2) find -maxdepth 2 -name ...

在windows下安装mongodb

在windows下安装mongodb 第一步:下载安装包:如果是win系统,注意是64位还是32位版本的,请选择正确的版本。 第二步:新建目录“D:\MongoDB”,解压下载到的安装包,拷贝到刚创建的目录下。 第三步:在“D:\MongoDB”目录下新建“data”文件夹,它将会作为数据存放的根文件夹。 注:官方下载地址:http://www.mongodb.org/downloads 打开CMD窗口,按照如下方式输入命令: d: cd MongoDB\bin mongod.exe --dbpath D:\MongoDB\data ps:// 输...

cmd下常用命令

1.目录的切换和目录下内容的展示 cd .. 返回上一目录 dir 列出当前目录下的所有内容 cd xingdong365 切换到xingdong365目录下 2.计划关机命令 shutdown -s -t 3600 3600秒(1小时)后关机 shutdown -a 取消关机计划 3.清屏退出 cls 清屏 exit 退出

Windows下配置memcache

Windows下配置memcache 下载:Memcache Win32 (下载地址:http://pan.baidu.com/s/1qWjn9tq) 1、解压到目录:c:\mem (自定义,任何目录) 2、c:\mem\memcached.exe -d install 3、c:\mem\memcached.exe -d start (启动服务) 4、telnet 127.0.0.1 11211 (使用telnet连接测试是否成功) 5、输入:stats 命令查看基本信息 PHP中配置 Memcache 1、下载:php_memcache....