Skip to content

Instantly share code, notes, and snippets.

View corerman's full-sized avatar
🚩

corerman

🚩
View GitHub Profile
@corerman
corerman / Manjaro 安装 LNMP环境.md
Last active May 16, 2018 09:20
Manjaro 安装 LNMP环境

1. 编译Nginx

1.1 创建用户 及 用户组
    sudo groupadd -r www
    sudo useradd -s /sbin/nologin -g www -r www
    
1.2 下载Nginx源码包 并 解压
    wget http://nginx.org/download/nginx-1.14.0.tar.gz
@corerman
corerman / Bubble_Sort.sh
Created May 17, 2018 07:31
算法: Bubble_Sort.sh 冒泡排序
#include <stdio.h>
int main(){
int numlist[100],len=0,num=0;
while(scanf("%d",&num)!=EOF){
numlist[len]=num;
len++;
}
int tempnum=0;
@corerman
corerman / typecho.conf
Created May 18, 2018 03:25
nginx_typecho.conf
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}