技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在位置 >首页 > LNMP
0℃
基础教程: Debian 10.9.x安装配置图解教程 https://www.osyunwei.com/archives/11103.html 准备篇: 一、配置防火墙,开启80端口、3306端口 Debian默认没有安装任何防火墙的,我们这里推荐使用iptables防火墙。 1.1安装iptables防火墙 whereis iptables #查看系统是否安装防火墙 apt-get install iptables #运行此命令安装防火墙 mkdir /etc/sysconfig #创建防火墙配置文件存放目录 touch /etc/sysconfig/iptables #创建防火墙配置文件 nano /etc/sysconfig/iptables #编辑添加防火墙规则 # sample configuratio...
阅读全文
0℃
基础教程: Ubuntu Server 20.04.1 LTS安装配置图解教程 https://www.osyunwei.com/archives/10727.html 准备篇: 一、配置防火墙,开启80端口、3306端口 1.1安装iptables防火墙 Ubuntu Server默认没有开启任何防火墙的,但是默认安装了ufw防火墙,我们这里推荐使用iptables防火墙。 ufw status #查看系统自带的ufw防火墙状态 Status: inactive #表示关闭 ufw disable #关闭ufw防火墙,参数enable是开启,我们这里关闭 apt-get remove ufw #卸载ufw apt-get purge ufw #清除ufw依赖包 whereis iptables #查看系统...
阅读全文
0℃
本文档最后更新于2021年5月28日 基础教程: Rocky Linux 8.x系统安装配置图解教程 https://www.osyunwei.com/archives/11453.html 准备篇 一、防火墙配置 Rocky Linux 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/...
阅读全文
0℃
本文档最后更新于2021年5月25日 前传: 1、CentOS 8.x系统安装配置图解教程 https://www.osyunwei.com/archives/11499.html 2、CentOS服务器初始化设置 http://www.osyunwei.com/archives/9034.html 准备篇 一、防火墙配置 CentOS 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装i...
阅读全文
0℃
2019年10月25日 LNMP ⁄ 被围观 34,056次+
必会知识: 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 #编辑防...
阅读全文
0℃
2017年03月03日 LNMP ⁄ 被围观 29,053次+
前传: 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 #编辑防火墙配置文件 ...
阅读全文
0℃
2016年12月16日 LNMP ⁄ 被围观 19,112次+
准备篇 一、配置防火墙,开启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 ...
阅读全文
0℃
2016年10月11日 LNMP ⁄ 被围观 18,787次+
准备篇 一、防火墙配置 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 ...
阅读全文
0℃
2016年10月09日 LNMP ⁄ 被围观 15,303次+
准备篇 一、防火墙配置 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 ...
阅读全文
82℃
2014年12月24日 LNMP ⁄ 被围观 149,913次+
最新版本: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 #进入...
阅读全文
0℃
2014年12月16日 LNMP ⁄ 被围观 19,063次+
准备篇: 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 ...
阅读全文
3℃
2014年12月15日 LNMP ⁄ 被围观 48,237次+
准备篇: 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...
阅读全文
2℃
2014年07月08日 LNMP ⁄ 被围观 116,187次+
准备篇: 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 # ...
阅读全文
4℃
2014年01月10日 LNMP ⁄ 被围观 23,698次+
说明: 操作系统: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端口通过防火...
阅读全文
0℃
遇到问题: 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  #...
阅读全文
28℃
2013年03月20日 LNMP ⁄ 被围观 47,393次+
准备篇 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...
阅读全文
6℃
2012年11月08日 LNMP ⁄ 被围观 27,499次+
说明: 操作系统: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...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3