V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  hobbyliu  ›  全部回复第 44 页 / 共 44 页
回复总数  878
1 ... 35  36  37  38  39  40  41  42  43  44  
❮ ❯
```
user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

pid /run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

index index.html index.htm;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
=====================================
server {
listen 80;
server_name lumentest;
root /home/hobby/service;
#root /usr/share/nginx/html;
index index.html index.htm;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /home/hobby/service;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
```
@vaynewang 这样的域名,有人买吗?
2015 年 5 月 25 日
回复了 hobbyliu 创建的主题 › GitHub › 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@clino golang.org 被墙,好多包导入失败怎么办
```
go get -v golang.org/x/net/html
Fetching https://golang.org/x/net/html?go-get=1
https fetch failed.
Fetching http://golang.org/x/net/html?go-get=1
import "golang.org/x/net/html": http/https fetch: Get http://golang.org/x/net/html?go-get=1: dial tcp 173.194.72.141:80: i/o timeout
package golang.org/x/net/html: unrecognized import path "golang.org/x/net/html"

```
2015 年 5 月 25 日
回复了 hobbyliu 创建的主题 › GitHub › 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@Muninn 和我父亲商量商量。不给钱也没法。。
@openroc 巨2 那 s 呢?
@Tyler1989 没别的意思,我有收集头像的爱好。
@ChanneW 如何做 说说思路?
@randyzhao 聚二手
@nuc093 公共账号?
@fising 雪球不是app?
@mahone3297 这样来行不行?
@rails3 感觉有市场不?
2015 年 5 月 4 日
回复了 hobbyliu 创建的主题 › MySQL › mysql 设置字段长度为啥 一般是 4 的倍数?
@elvba 哪 varchar(x) 呢?
2015 年 5 月 4 日
回复了 hobbyliu 创建的主题 › MySQL › mysql 设置字段长度为啥 一般是 4 的倍数?
@elvba 嗯 确实如此,也能塞进去。那么问题来了 int(x) 这个 x 可以影响什么,能否举例说明?
2015 年 5 月 4 日
回复了 hobbyliu 创建的主题 › MySQL › mysql 设置字段长度为啥 一般是 4 的倍数?
@cmingxu 但是如果 我 设置 int(1) 要 insert 9999 进入,貌似报错,按道理 1 只是显示,和存储无关 应该能存进去啊
2015 年 5 月 4 日
回复了 hobbyliu 创建的主题 › MySQL › mysql 设置字段长度为啥 一般是 4 的倍数?
@ksupertu 额 我会好好看的 不是科班出身的说。。
2015 年 5 月 4 日
回复了 hobbyliu 创建的主题 › MySQL › mysql 设置字段长度为啥 一般是 4 的倍数?
@yangqi 那int(11) 设定是否合理?
2015 年 4 月 24 日
回复了 hobbyliu 创建的主题 › 问与答 › jenkins git 插件问题 求大神指点
木有大神回复吗
2015 年 4 月 20 日
回复了 hobbyliu 创建的主题 › git › gitlab-cli 配置 mysql 问题
@tczzjin[error] 13591#0: *1 connect() to unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 222.35.120.56, server: aliyun-bj.com.com, request: "GET / HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/", host: "git.khk.cc"
2015 年 4 月 20 日
回复了 hobbyliu 创建的主题 › git › gitlab-cli 配置 mysql 问题
@mengzhuo 这个日志 一般纪录到哪里呢
@tczzjin
1 ... 35  36  37  38  39  40  41  42  43  44  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3846 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms · UTC 04:03 · PVG 12:03 · LAX 20:03 · JFK 23:03
♥ Do have faith in what you're doing.