V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hobbyliu  ›  全部回复第 42 页 / 共 42 页
回复总数  839
1 ... 33  34  35  36  37  38  39  40  41  42  
2015-05-27 11:12:36 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
@lzk800

```
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;
}
```
2015-05-27 11:11:41 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
```
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-05-25 19:38:04 +08:00
回复了 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-05-25 19:35:56 +08:00
回复了 hobbyliu 创建的主题 GitHub 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@Muninn 和我父亲商量商量。不给钱也没法。。
@openroc 巨2 那 s 呢?
@Tyler1989 没别的意思,我有收集头像的爱好。
@ChanneW 如何做 说说思路?
@randyzhao 聚二手
2015-05-21 22:36:06 +08:00
回复了 hobbyliu 创建的主题 奇思妙想 最近股市很火,可以搞一个学习股票入门的网站吗?
@nuc093 公共账号?
2015-05-19 17:40:13 +08:00
回复了 hobbyliu 创建的主题 奇思妙想 最近股市很火,可以搞一个学习股票入门的网站吗?
@fising 雪球不是app?
2015-05-19 17:39:57 +08:00
回复了 hobbyliu 创建的主题 奇思妙想 最近股市很火,可以搞一个学习股票入门的网站吗?
@mahone3297 这样来行不行?
2015-05-19 17:39:27 +08:00
回复了 hobbyliu 创建的主题 奇思妙想 最近股市很火,可以搞一个学习股票入门的网站吗?
@rails3 感觉有市场不?
2015-05-04 19:11:51 +08:00
回复了 hobbyliu 创建的主题 MySQL mysql 设置字段长度为啥 一般是 4 的倍数?
@elvba 哪 varchar(x) 呢?
2015-05-04 18:01:19 +08:00
回复了 hobbyliu 创建的主题 MySQL mysql 设置字段长度为啥 一般是 4 的倍数?
@elvba 嗯 确实如此,也能塞进去。那么问题来了 int(x) 这个 x 可以影响什么,能否举例说明?
2015-05-04 17:22:16 +08:00
回复了 hobbyliu 创建的主题 MySQL mysql 设置字段长度为啥 一般是 4 的倍数?
@cmingxu 但是如果 我 设置 int(1) 要 insert 9999 进入,貌似报错,按道理 1 只是显示,和存储无关 应该能存进去啊
2015-05-04 11:04:19 +08:00
回复了 hobbyliu 创建的主题 MySQL mysql 设置字段长度为啥 一般是 4 的倍数?
@ksupertu 额 我会好好看的 不是科班出身的说。。
2015-05-04 10:55:38 +08:00
回复了 hobbyliu 创建的主题 MySQL mysql 设置字段长度为啥 一般是 4 的倍数?
@yangqi 那int(11) 设定是否合理?
2015-04-24 15:09:56 +08:00
回复了 hobbyliu 创建的主题 问与答 jenkins git 插件问题 求大神指点
木有大神回复吗
2015-04-20 15:49:51 +08:00
回复了 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"
1 ... 33  34  35  36  37  38  39  40  41  42  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5664 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 06:30 · PVG 14:30 · LAX 22:30 · JFK 01:30
Developed with CodeLauncher
♥ Do have faith in what you're doing.