0℃
2019年10月25日
⁄ LNMP
⁄ 被围观 1,954次+
必会知识:
CentOS 8.0.1905系统安装配置图解教程
https://www.osyunwei.com/archives/10256.html
准备篇
一、防火墙配置
CentOS 从7.x开始默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum -y remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防...
CentOS, lnmp, mysql, php阅读全文
0℃
2017年03月03日
⁄ LNMP
⁄ 被围观 20,540次+
前传:
1、CentOS 7.3.1611系统安装配置图解教程
http://www.osyunwei.com/archives/10003.html
2、CentOS服务器初始化设置
http://www.osyunwei.com/archives/9034.html
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
...
CentOS, lnmp, mysql, php7阅读全文
0℃
2016年12月16日
⁄ LNMP
⁄ 被围观 12,826次+
准备篇
一、配置防火墙,开启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 state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state ...
linux, lnmp阅读全文
0℃
2016年10月11日
⁄ LNMP
⁄ 被围观 14,013次+
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services ...
CentOS, lnmp阅读全文
0℃
2016年10月09日
⁄ LNMP
⁄ 被围观 10,245次+
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services ...
CentOS, lnmp阅读全文
82℃
2014年12月24日
⁄ LNMP
⁄ 被围观 145,772次+
最新版本: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
⁄ 被围观 16,571次+
准备篇:
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阅读全文
3℃
2014年12月15日
⁄ LNMP
⁄ 被围观 41,420次+
准备篇:
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阅读全文
2℃
2014年07月08日
⁄ LNMP
⁄ 被围观 106,206次+
准备篇:
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阅读全文
4℃
2014年01月10日
⁄ LNMP
⁄ 被围观 18,944次+
说明:
操作系统:CentOS 5.10 64位
准备篇:
一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器,服务器时间设置正确
CentOS 5.10系统安装配置图解教程:http://www.osyunwei.com/archives/7002.html
二、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables #编辑
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火...
CentOS 5.10, lnmp阅读全文
0℃
2013年08月17日
⁄ LNMP
⁄ 被围观 12,402次+
遇到问题:
VPS小内存LNMP服务器,网站访问量偶尔突然增加,会导致php进程卡死,出现Nginx 502 Bad Gateway故障,
这个时候只要重启php进程,网站马上恢复正常。
解决办法:
在不增加硬件投入的情况下,当网站出现Nginx 502 Bad Gateway故障时,在1分钟内让php进程自动重启,
从而解决问题。
具体步骤:
说明:
php进程启动命令:service php-fpm start
php进程服务名:php-cgi #php 5.3以上版本中进程服务名为:php-fpm
/home/wwwlogs/502 #判断php进程是否卡死中间过程文件
/home/wwwlogs/502_error.log #...
lnmp阅读全文
28℃
2013年03月20日
⁄ LNMP
⁄ 被围观 42,782次+
准备篇
1、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙
备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败,
正确的应该是添加到默认的22端口这条规则的下面
如下所示:
################################ 添加好之后防火墙规则如下所示################################
# F...
CentOS, lnmp阅读全文
6℃
2012年11月08日
⁄ LNMP
⁄ 被围观 22,193次+
说明:
操作系统:CentOS Nginx安装路径:/usr/local/nginx Nginx配置文件路径:/usr/local/nginx/conf/nginx.conf nginx安装包目录:/usr/local/src/nginx-1.2.4 Nginx 软件版本:nginx-1.2.4
一、下载软件包
http://mirror.yongbok.net/nongnu/libunwind/libunwind-1.1.tar.gz #下载libunwind
https://gperftools.googlecode.com/files/gperftools-2.0.tar.gz #下载gperftools
上传软件包到服务器的/usr/local/src目录下面
二、安装gperftools
1、安装libunwind(安装gperftools前需要先安装libunwind...
CentOS, gperftools, 优化nginx阅读全文
1℃
2012年10月19日
⁄ LNMP
⁄ 被围观 12,647次+
说明:
站点1:bbs.osyunwei.com
站点2:sns.osyunwei.com
站点1的nginx配置文件路径:/usr/local/nginx/conf/vhost/bbs.osyunwei.com.conf
站点1下面的图片路径:http://bbs.osyunwei.com/osyunwei.jpg
系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
站点2下面的网页文件路径:http://sns.osyunwei.com/nginx.html
nginx.html文件代码
<title>nginx图片防盗链</title>
</head>
<body>
<img src="http://bbs.osyunwei.com/osyunwei.jpg...
防盗链阅读全文
6℃
2012年10月17日
⁄ LNMP
⁄ 被围观 12,110次+
说明:
站点一:bbs.osyunwei.com 程序目录:/data/wwwroot/bbs.osyunwei.com
如下图所示:
站点二:sns.osyunwei.com 程序目录:/data/wwwroot/sns.osyunwei.com
如下图所示:
php.ini配置文件路径:/etc/php.ini php版本:php 5.3.16(此方法只针对php 5.3.0及其以上版本有效)
问题:
在站点一的目录下面上传PHP管理工具(请自行搜索下载),通过此工具可以浏览到站点二的目录内容,出现跨站、跨目录浏览
如下图所示:
系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容©版权所有,转载请注明出处及...
php跨站, 目录跨站阅读全文
7℃
2012年08月24日
⁄ LNMP
⁄ 被围观 25,443次+
说明:
操作系统:CentOS 6.3 32位
系统安装教程:CentOS 6.3安装(超级详细图解教程)
http://www.osyunwei.com/archives/4753.html
准备篇:
一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器
CentOS 设置IP地址、网关、DNS教程:http://www.osyunwei.com/archives/423.html
二、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙
-A INPUT -m state --state NEW -m tcp -p tcp --dport 33...
CentOS 编译安装lnmp, DedeCms, lnmp阅读全文
5℃
2012年08月22日
⁄ LNMP
⁄ 被围观 11,146次+
说明:
操作系统:CentOS 5.8 32位
系统安装教程:CentOS 5.8安装图解教程
http://www.osyunwei.com/archives/4881.html
准备篇:
一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器
CentOS 设置IP地址、网关、DNS教程:http://www.osyunwei.com/archives/423.html
二、配置防火墙,开启80端口、3306端口
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp ...
CentOS, CentOS 编译安装lnmp, lnmp阅读全文