82℃
2014年12月24日
⁄ LNMP
⁄ 被围观 151,901次+
最新版本:lnmp-2.6
更新时间:20141224
MD5值:305651B15F9CCABF5A7912197206ED28
安装说明:请保证服务器能够正常上网、yum命令可以正常使用!
1、wget http://www.osyunwei.com/lnmp/lnmp-2.6.tar.gz #下载,需要先执行yum install wget安装下载工具
2、tar zxvf lnmp-2.6.tar.gz #解压
3、cd lnmp-2.6 #进入安装目录
4、sh CentOS.sh #运行安装脚本
5、直到安装结束
6、cat /root/web-install.log #查看安装日志
配置说明:
1、MySQL数据库root密码默认为空
可以用下面命令修改密码:
mysql -u root -p #进入...
lnmp, 一键安装阅读全文
0℃
2014年12月16日
⁄ LNMP
⁄ 被围观 20,369次+
准备篇:
CentOS 5.x系统安装配置图解教程
http://www.osyunwei.com/archives/7002.html
一、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT ...
CentOS, lnmp, nginx, php阅读全文
0℃
2014年12月16日
⁄ LAMP
⁄ 被围观 20,208次+
准备篇:
CentOS 5.x系统安装配置图解教程
http://www.osyunwei.com/archives/7002.html
1、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-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 #注释...
Apache, CentOS, LAMP, mysql, php阅读全文
3℃
2014年12月15日
⁄ LNMP
⁄ 被围观 50,021次+
准备篇:
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,306次+
准备篇:
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,246次+
说明:
操作系统: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,423次+
准备篇:
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,235次+
准备篇:
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,352次+
说明:
操作系统: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
⁄ 被围观 28,176次+
说明:
操作系统: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,364次+
说明:
操作系统: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,770次+
说明:
操作系统: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,205次+
说明:
操作系统: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
⁄ 被围观 115,467次+
说明:
服务器操作系统: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
⁄ 被围观 129,195次+
准备篇
一、环境说明:
操作系统: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,290次+
说明:
操作系统: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,654次+
说明:
操作系统: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日志阅读全文