06 2017 档案

摘要:前言: 在本篇博客中,我将给大家介绍如何在Centos7上安装PHP-Redis扩展以及一些简单的实用,关于如何在Centos上安装redis的,可以参考我的上一篇博客 Redis在Centos7上的安装部署 想要在php中操作redis,那就必须安装php-redis扩展,就比如MySQL一样,p 阅读全文
posted @ 2017-06-24 23:59 cnbing 阅读(5539) 评论(1) 推荐(0)
摘要:一、修改httpd.conf文件 #配置文本最后加入:<Directory "D:/web/web1"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all 阅读全文
posted @ 2017-06-08 15:29 cnbing 阅读(1548) 评论(0) 推荐(0)
摘要:一、升级YUM源 yum -y update 二、安装Apache 查看yum中Apache的版本yum list httpd #确认版本为2.4版本 安装:yum install httpd -y 自动安装结束: systemctl stop httpd.servicesystemctl star 阅读全文
posted @ 2017-06-08 14:53 cnbing 阅读(1140) 评论(0) 推荐(0)
摘要:CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service systemctl disable firewalld.service systemctl mask firewalld.service 2、安装iptables防火墙 yum install iptable... 阅读全文
posted @ 2017-06-07 15:57 cnbing 阅读(9648) 评论(1) 推荐(0)
摘要:参考以下内容: 阅读全文
posted @ 2017-06-07 15:23 cnbing 阅读(942) 评论(0) 推荐(0)
摘要:# id www id: www:无此用户 # groupadd www # useradd -g www -s /sbin/nologin www # id www uid=501(www) gid=501(www) 组=501(www) 阅读全文
posted @ 2017-06-07 15:17 cnbing 阅读(12536) 评论(0) 推荐(0)
摘要:例如,要把域名 test.com,重定向到 www.test.com,则需要修改 Apache 中站点的配置文件,添加 301 重定向的配置。 最主要就是以下配置: 添加好 Apache 的配置后,重启 Apache 生效,然后访问 test.com,就会 301 跳转到 www.test.com  阅读全文
posted @ 2017-06-07 15:08 cnbing 阅读(3537) 评论(0) 推荐(0)