centos安装nginx
来源:互联网 发布:新版php卡盟排行榜源码 编辑:程序博客网 时间:2024/06/04 01:04
安装过程
http://www.cnblogs.com/bluestorm/p/4574688.html
http://blog.csdn.net/baidu_21578557/article/details/53884178?utm_source=gold_browser_extension
设置开机自动启动(shell脚本处理)
vi /etc/init.d/nginx#!/bin/sh # chkconfig: 2345 85 15 # Startup script for the nginx Web Server # description: nginx is a World Wide Web server. # It is used to serve HTML files and CGI. # processname: nginx # pidfile: /usr/local/nginx/logs/nginx.pid # config: /usr/local/nginx/conf/nginx.conf PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="nginx deamon" NAME=nginx DAEMON=/usr/local/nginx/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME test -x $DAEMON || exit 0 d_start(){ $DAEMON || echo -n "already running" } d_stop(){ $DAEMON -s quit || echo -n "not running" } d_reload(){ $DAEMON -s reload || echo -n "can not reload" } case "$1" in start) echo -n "Starting $DESC: $NAME" d_start echo "." ;; stop) echo -n "Stopping $DESC: $NAME" d_stop echo "." ;; reload) echo -n "Reloading $DESC conf..." d_reload echo "reload ." ;; restart) echo -n "Restarting $DESC: $NAME" d_stop sleep 2 d_start echo "." ;; *) echo "Usage: $ScRIPTNAME {start|stop|reload|restart}" >&2 exit 3 ;; esac exit 0
阅读全文
0 0
- centos 安装nginx 配置nginx
- centos安装Nginx问题
- centOs下安装Nginx
- CentOS 5.6 安装Nginx
- centos下安装nginx
- CentOS下Nginx安装
- CentOS上 安装Nginx
- centos安装nginx
- Centos 安装nginx
- centos下安装nginx
- centos 安装 nginx
- CentOS下安装Nginx
- Centos 源码安装 nginx
- centos下安装nginx
- Centos上安装nginx
- CentOS下Nginx安装
- centos安装FastDFS+Nginx
- centos nginx 安装
- mybatis详解——properties以及别名定义
- Windows消息:怎样使用RegisterWindowMessage注册消息
- SSM框架的流程学习笔记以及每一步容易出错的地方
- 委托和事件学习
- 二叉搜索树的Java实现
- centos安装nginx
- 二分查找总结
- android MPchart 折现图只有一个点不显示问题
- 博弈——sg函数实现和讲解
- centos X64下安装php5.5.6
- iOS之《Effective Objective-C 2.0》读书笔记(9)
- Spring boot之代码规范书写
- 使用idea搭建自己的SpringBoot initializer构建服务器
- NYOJ 737 石子合并(一)