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

下次自动登录
现在位置 >首页 > nginx
0℃
准备篇 CentOS 7.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防火墙 RTMP基于TCP, 默认使用端口1935,再开放81端口 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit...
阅读全文
0℃
2022年08月03日 Nginx ⁄ 被围观 2,943次+
操作系统:CentOS 7.x 准备篇 一、防火墙配置 CentOS 7.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/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this man...
阅读全文
0℃
2022年06月08日 OpenResty ⁄ 被围观 3,919次+
OpenResty® 是一款基于 NGINX 和 LuaJIT 的 Web 平台。 官方网站:https://openresty.org/cn/ 准备篇 一、防火墙配置 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、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 ...
阅读全文
0℃
2021年08月09日 Docker ⁄ 被围观 5,273次+
一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、构建Nginx容器镜像 1、准备软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 wget http://nginx.org/download/nginx-1.21.1.tar.gz #nginx wget http://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz #nginx扩展 wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz #nginx扩展 wget http://www.zlib.net/zlib-1.2.11.tar.gz #nginx扩展 2、从docker hub拉取构建所需要的基础系统镜像 #我们用cento...
阅读全文
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℃
2016年11月28日 Nginx ⁄ 被围观 13,147次+
说明: Nginx目录:/usr/local/nginx/ Nginx配置文件:/usr/local/nginx/nginx.conf 如果站点使用了vhost虚拟主机,并且只需要这一个虚拟主机支持pathinfo的,可以直接打开你的vhost的配置文件进行设置(绿色字为修改代码,蓝色字为增加代码)。 找到类似如下代码: location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; #原来的代码 ...... } 编辑配置文件为以下代码: location ~ \.php { #定义变量 $path_info ,用于存放pathinfo信息 set $path_info...
阅读全文
0℃
2016年11月08日 Nginx ⁄ 被围观 16,826次+
教程目的: 使用Linux系统自带的命令logrotate对Nginx日志进行切割。 Nginx安装目录:/usr/local/nginx/ Nginx日志目录:/usr/local/nginx/logs/、/usr/local/nginx/logs/nginx_logs/ 1、添加nginx日志切割脚本 cd  /etc/logrotate.d  #进入目录 vi   /etc/logrotate.d/nginx   #编辑脚本 /usr/local/nginx/logs/*.log  /usr/local/nginx/logs/nginx_logs/*.log{ su root www missingok dateext notifempty daily rotate 7 create 0640 www adm sharedscripts postrotate if [ -f /usr/local/nginx/logs/nginx.pi...
阅读全文
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...
阅读全文


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