Nginx教程
来源:互联网 发布:fifa online3 cdk淘宝 编辑:程序博客网 时间:2024/06/04 20:13
配置实用Nginx步骤:
1:http://nginx.org/en/download.html 下载nginx giz
2:解压
3:dos进去目录 nginx.exe打开
4:配置host
C:\Windows\System32\drivers\etc 编辑host,在最底下进行配置
127.0.0.1 你配置的域名
5:测试 网页输入你的域名
虚拟机配置Nginx
开机自起
!/bin/bash
nginx Startup script for the Nginx HTTP Server
it is v.0.0.2 version.
chkconfig: - 85 15
description: Nginx is a high-performance web and proxy server.
It has a lot of features, but it’s not for everyone.
processname: nginx
pidfile: /var/run/nginx.pid
config: /usr/local/nginx/conf/nginx.conf
nginxd=/usr/local/nginx/sbin/nginx
nginx_config=/usr/local/nginx/conf/nginx.conf
nginx_pid=/var/run/nginx.pid
RETVAL=0
prog=”nginx”
Source function library.
. /etc/rc.d/init.d/functions
Source networking configuration.
. /etc/sysconfig/network
Check that networking is up.
[ {NETWORKING} = “no” ] && exit 0
[ -xnginxd ] || exit 0
Start nginx daemons functions.
start() {
if [ -e
echo
[ RETVAL = 0 ] && touch /var/lock/subsys/nginx
returnRETVAL
}
Stop nginx daemons functions.
stop() {
echo -n
killproc
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/nginx /var/run/nginx.pid
}
reload nginx service functions.
reload() {
echo -n
#kill -HUP cat ${nginx_pid}
killproc
echo
}
See how we were called.
case “
RETVAL=
- Nginx教程
- nginx教程
- nginx教程
- Nginx 教程
- Nginx 教程
- Nginx教程
- nginx教程
- Nginx教程
- nginx教程
- Nginx教程
- nginx教程
- Nginx教程(一) Nginx入门教程
- Nginx虚拟主机配置教程
- Nginx虚拟主机配置教程
- Nginx安装教程
- nginx新手教程
- Nginx 模块开发教程
- Nginx优化教程
- 《冯乐乐》渲染流水线中的三个概念阶段——笔记整理
- POJ 3013 Big Christmas Tree
- LeetCode 45. Jump Game II
- eclipse配置:save action-->enable project specific settings
- ARM开发板修改设置静态IP
- Nginx教程
- 自定义view 画百分比
- Visio圆角左箭头转换成圆角右箭头
- 反射-总结
- 【读书笔记】机器学习实战 第7章 7.6节 在难数据集上应用AdaBoost
- 前台拼接html
- Buttion状态变化背景跟着变化
- matlab作时间相关的图
- Part Alerts Now in C#