3℃
2014年12月15日
⁄ LNMP
⁄ 被围观 49,821次+
准备篇:
CentOS 6.6系统安装配置图解教程
http://www.osyunwei.com/archives/8398.html
一、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m sta...
CentOS, lnmp, mysql, nginx, php阅读全文
0℃
2014年11月01日
⁄ LAMP
⁄ 被围观 53,110次+
准备篇:
CentOS 6.6系统安装配置图解教程
http://www.osyunwei.com/archives/8398.html
1、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
:wq! #保存退出
添加好规则后的防火墙配置文件如下图所示:
/etc/init.d/iptables restart #重启防火墙使配置生效
2、关闭SELINUX
vi /etc/selinux/config
#SELINUX=enforcing #注释掉
#SELINUXTYPE=targeted #注...
CentOS, LAMP阅读全文
0℃
2014年09月19日
⁄ Nginx
⁄ 被围观 36,058次+
说明:
操作系统:CentOS 6.x
web环境:php+nginx+mysql
nginx安装目录:/usr/local/nginx
nginx配置文件:/usr/local/nginx/conf/nginx.conf
nginx默认站点目录:/usr/local/nginx/html/
需求:让nginx能够解析.cgi后缀的文件
具体操作:
一、安装perl-fcgi依赖包,通过安装perl-fcgi来支持nginx运行.cgi
yum install perl-CPAN perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
二、安装perl
cd /usr/local/src
wget http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz #下载安装包,需要提前安装wget工具
tar -x...
cig, linux, nginx支持.cig阅读全文
2℃
2014年07月08日
⁄ LNMP
⁄ 被围观 118,213次+
准备篇:
CentOS 7.0系统安装配置图解教程
http://www.osyunwei.com/archives/7829.html
一、配置防火墙,开启80端口、3306端口
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by system-config-firewall
# ...
CentOS, CentOS 7.0, lnmp阅读全文
0℃
2014年07月08日
⁄ LAMP
⁄ 被围观 138,038次+
准备篇:
CentOS 7.0系统安装配置图解教程
http://www.osyunwei.com/archives/7829.html
一、配置防火墙,开启80端口、3306端口
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by system-config-firewall
# ...
CentOS, CentOS 7, LAMP阅读全文
0℃
2014年05月27日
⁄ MySQL
⁄ 被围观 24,162次+
说明:
操作系统:CentOS 5.X 64位
MySQL版本:mysql-5.5.35
MySQL配置文件:/etc/my.cnf
MySQL 数据库存放目录:/data/mysql
实现目的:开启MySQL慢查询日志功能,安装使用MySQL慢查询分析mysqlsla
具体操作:
一、开启MySQL慢查询功能
mysql -u root -p #进入MySQL控制台
show variables like '%slow%'; #查看MySQL慢查询是否开启
set global slow_query_log=ON; #开启MySQL慢查询功能
show variables like "long_query_time"; #查看MySQL慢查询时间设置,默认10秒
set global long_query_time=5; #...
mysql, mysqlsla, 慢查询阅读全文
0℃
2014年04月26日
⁄ MongoDB
⁄ 被围观 27,941次+
说明:
操作系统:CentOS 5.X 64位
MongoDB数据库服务器:
IP地址:192.168.21.130
Web服务器:
IP地址:192.168.21.127
PHP安装路径:/usr/local/php
实现目的:
安装PHP的MongoDB数据库扩展,通过PHP程序连接MongoDB数据库
具体操作:
一、安装PHP的MongoDB数据库扩展(在Web服务器192.168.21.127上操作)
下载地址:http://pecl.php.net/get/mongo-1.5.1.tgz
上传mongo-1.5.1.tgz到/usr/local/src目录
tar zxvf mongo-1.5.1.tgz #解压
cd mongo-1.5.1
/usr/local/php/bin/phpize
./configure --with-php-con...
linux, MongoDB阅读全文
0℃
2014年04月25日
⁄ MongoDB
⁄ 被围观 60,153次+
说明:
操作系统:CentOS 5.X 64位
IP地址:192.168.21.130
实现目的:
安装配置MongoDB数据库
具体操作:
一、关闭SElinux、配置防火墙
1、vi /etc/selinux/config
#SELINUX=enforcing #注释掉
#SELINUXTYPE=targeted #注释掉
SELINUX=disabled #增加
:wq! #保存退出
setenforce 0 #使配置立即生效
2、vi /etc/sysconfig/iptables #编辑
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 27017 -j ACCEPT #允许27017端口通过防火墙
:wq! #保存退出
/etc/init.d/iptables restart #重启防...
linux, MongoDB阅读全文
0℃
2014年03月27日
⁄ Coreseek
⁄ 被围观 26,541次+
说明:
操作系统:CentOS 5.X
服务器IP地址:192.168.21.127
Web环境:Nginx+PHP+MySQL
站点根目录:/usr/local/nginx/html
目的:安装coreseek中文检索引擎,配置MySQL数据库访问接口,使用PHP程序实现中文检索。
CoreSeek官方网站:
http://www.coreseek.cn/
http://www.coreseek.cn/products/=%22/products-install/step_by_step/
http://www.coreseek.cn/products-install/mysql/
具体操作:
一、安装编译工具
yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel ...
linux, mysql, 中文检索阅读全文
0℃
2014年02月26日
⁄ PHP
⁄ 被围观 46,024次+
说明:
操作系统:CentOS 5.x 64位
已安装php版本:php-5.4.4
已安装php路径:/usr/local/php
实现目的:
在不影响网站访问的情况下,重新编译php,增加对mcrypt扩展的支持
具体操作:
一、下载软件包
1、下载php(版本要与系统安装的一致)
http://museum.php.net/php5/php-5.4.4.tar.gz
2、下载libmcrypt(安装mcrypt需要此软件包)
http://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
3、下载mhash(安装mcrypt需要此软件包)
https://acelnmp.googlecode.com/files/mhas...
linux, mcrypt阅读全文
3℃
2014年02月13日
⁄ PPTP
⁄ 被围观 114,984次+
说明:
服务器操作系统:CentOS 5.X 64位
服务器IP地址:192.168.21.128
实现目的:服务器安装配置pptp软件,对外提供vpn拨号服务
具体操作:
一、安装包下载
1、ppp #安装pptpd需要此软件包
http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.4-14.1.rhel5.x86_64.rpm
2、pptpd #目前最新版本
http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.rhel5.x86_64.rpm
下载好之后上传到/usr/local/src目录
二、检查服务器系统环境是否支持安装pptp vpn
1、检查系统内核是否支持MPPE补丁
...
CentOS, vpn阅读全文
0℃
2014年01月29日
⁄ IIS
⁄ 被围观 128,897次+
准备篇
一、环境说明:
操作系统:Windows Server 2012 R2
PHP版本:php 5.5.8
MySQL版本:MySQL5.6.15
二、相关软件下载:
1、PHP下载地址:
http://windows.php.net/downloads/releases/php-5.5.8-nts-Win32-VC11-x86.zip
2、MySQL下载地址:
http://cdn.mysql.com/Downloads/MySQLInstaller/mysql-installer-community-5.6.15.0.msi
3、Visual C++ Redistributable for Visual Studio 2012 Update 4(x64)下载地址(安装PHP需要此插件):
http://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AA...
FastCGI, mysql, Windows Server 2012 R2阅读全文
0℃
2014年01月29日
⁄ IIS
⁄ 被围观 29,063次+
说明:
操作系统:Windows Server 2012 R2
Web服务器:IIS 8.5
网站程序:WordPress
网站根目录:C:\inetpub\wwwroot
网站域名:www.osyunwei.com
实现目的:
配置WordPress伪静态
具体操作:
一、确认IIS 8.5是否安装IIS URL Rewrite
打开:控制面板\系统和安全\管理工具\Internet Information Services (IIS)管理器
看到URL重写,说明已经安装了IS URL Rewrite,否则要先安装此插件。
IIS URL Rewrite下载:http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_z...
IIS8.5, Windows Server 2012 R2, WordPress, 伪静态阅读全文
0℃
2014年01月27日
⁄ Nginx
⁄ 被围观 23,471次+
说明:
操作系统:CentOS
站点1:bbs.osyunwei.com
站点2:sns.osyunwei.com
Nginx安装路径:/usr/local/nginx
Nginx配置文件路径:/usr/local/nginx/conf/nginx.conf
站点1配置文件路径:/usr/local/nginx/conf/vhost/bbs.osyunwei.com.conf
站点2配置文件路径:/usr/local/nginx/conf/vhost/sns.osyunwei.com.conf
目的:
1、对站点1和站点2的nginx访问日志按天保存,日志路径为:
站点1:/usr/local/nginx/logs/nginx_logs/bbs_logs
站点2:/usr/local/nginx/logs/nginx_logs/sns_logs
2、只保留30天以内的日志...
Nginx日志阅读全文
0℃
2014年01月21日
⁄ MySQL
⁄ 被围观 17,832次+
说明:
操作系统:CentOS
目的:定时监控MySQL主从数据库是否同步,如果不同步,记录故障时间,并执行命令使主从恢复同步状态
1、创建脚本文件
vi /home/crontab/check_mysql_slave.sh #编辑,添加下面代码
#!/bin/sh
# check_mysql_slave status
# author www.osyunwei.com
ip=eth0 #网卡名称
mysql_binfile=/usr/local/mysql/bin/mysql
mysql_user=root #MySQL数据库账号
mysql_pass=123456 #密码
mysql_sockfile=/tmp/mysql.sock
datetime=`date +"%Y-%m-%d/%H:%M:%S"` #获取当前时间
mysql_slave_logf...
mysql, 主从同步阅读全文
1℃
2014年01月20日
⁄ Redis
⁄ 被围观 30,888次+
说明:
操作系统:CentOS
1、安装编译工具
yum install wget make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils patch perl
2、安装tcl组件包(安装Redis需要tcl支持)
下载:http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
上传tcl8.6.1-src.tar.gz到/usr/local/src目录
cd /usr/local/src #进入软件包存放目录
tar zxvf tcl8.6.1-src.tar.gz #解压
cd tcl8.6.1 #进入安装目录
cd unix
./configure --prefix=/usr --without-tzdata --mandir=/usr/share/man...
Redis配置阅读全文
0℃
2014年01月17日
⁄ Redis
⁄ 被围观 41,692次+
说明:
操作系统:CentOS
php安装目录:/usr/local/php
php.ini配置文件路径:/usr/local/php/etc/php.ini
Nginx安装目录:/usr/local/nginx
Nginx网站根目录:/usr/local/nginx/html
系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容 版权所有,转载请注明出处及原文链接
1、安装编译工具
yum install wget make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils patch perl
2、安装redis
下载:https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz
上传phpr...
php安装Redis阅读全文