This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[litespeed] | |
name=LiteSpeed Tech Repository for CentOS $releasever - $basearch | |
baseurl=http://openlitespeed.oss-cn-hangzhou.aliyuncs.com/centos/7/$basearch/ | |
failovermethod=priority | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://openlitespeed.oss-cn-hangzhou.aliyuncs.com/centos/RPM-GPG-KEY-litespeed | |
[litespeed-update] | |
name=LiteSpeed Tech Repository for CentOS $releasever - $basearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[litespeed] | |
name=LiteSpeed Tech Repository for CentOS $releasever - $basearch | |
baseurl=http://rpms.litespeedtech.com/centos/7/$basearch/ | |
failovermethod=priority | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://rpms.litespeedtech.com/centos/RPM-GPG-KEY-litespeed | |
[litespeed-update] | |
name=LiteSpeed Tech Repository for CentOS $releasever - $basearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:leanote] | |
command=/bin/bash /root/leanote/bin/run.sh | |
autostart=true | |
autorestart=true | |
user=root | |
log_stderr=true | |
logfile=/var/log/leanote.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ## | |
## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 ## | |
## 文件保存相关 ## | |
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置 | |
dir=/home/wwwroot/ | |
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M | |
#disk-cache=32M | |
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
location / { | |
proxy_pass http://127.0.0.1:9000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
server_name localhost; | |
location / { | |
proxy_pass http://127.0.0.1:2368; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
server_name localhost; | |
location / { | |
proxy_pass http://127.0.0.1:9000; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# init_centos shell | |
#安装说明参见 https://sadsu.com/?p=266 | |
#----------------------------------------------------------# | |
# Variables&Functions # | |
#----------------------------------------------------------# | |
red='\033[0;31m' | |
green='\033[0;32m' | |
yellow='\033[0;33m' | |
plain='\033[0m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; |