V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  freaks  ›  全部回复第 13 页 / 共 29 页
回复总数  565
1 ... 9  10  11  12  13  14  15  16  17  18 ... 29  
2016-07-30 20:49:15 +08:00
回复了 only25133 创建的主题 YouTube 同学们都是怎么看 youtube 的视频的?
2016-07-29 12:21:30 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@wzxjohn 我又改为了官方源,但是也没有这两个文件夹
@yalay 不行的,我们 php 版本不一致,现在掉坑里了
2016-07-29 10:33:16 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@lslqtz 什么删掉? default.conf 删掉? 自己建一个配置文件
2016-07-29 09:36:44 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@wingoo 感谢~ do 的文档确实不错,我现在是 nginx 和 PHP 还没结合起来, nginx 是搭建好了,但是访问 domain/info.php 不是 404 就是变成下载 info.php 这个文件
这是我的配置文件: /etc/nginx/conf.d/default.conf

```
server {
listen 80;
root /var/www/html;
server_name localhost;

#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;

location / {
index index.php index.html index.htm;
try_files $uri $uri/ =404;
}
#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 /var/www/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 html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
```
2016-07-29 09:25:15 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@nisekoi 这是我用的源,要把这两个字段删除,重新添加源吗?

```bash
$ echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list
$ echo "deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list
```
2016-07-29 09:18:13 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@wzxjohn @yalay 的确改了源,不会是这个原因吧
2016-07-29 08:48:35 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@xqin @mml 我试一下咯
2016-07-29 08:33:00 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@mml http://ww1.sinaimg.cn/large/006x3BE7gw1f6ah51psprj310a0bztaz.jpg

就包含了这一个目录,自己建的话要改好多,好像还要建软连接,试过了一次,没搞好
2016-07-29 08:27:57 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@wolegequ 主配置文件修改不太好吧,大多数教程都是从 site-[available|enable]里的 default 开始的
2016-07-29 08:23:14 +08:00
回复了 freaks 创建的主题 NGINX nginx 缺少配置文件
@wzxjohn 不是,就是 apt-get install nginx
2016-07-28 11:33:13 +08:00
回复了 harry890829 创建的主题 Python 输入法联想……大家乐呵乐呵
2016-07-26 20:40:24 +08:00
回复了 somkanel 创建的主题 杭州 所以杭州这阵子天天 40ºC 大家都是怎么过得
犹记得小时候北方夏天的夜晚露天席地而眠,不习惯空调的感觉
2016-07-23 09:32:43 +08:00
回复了 phlips5437 创建的主题 问与答 小米 4 扩容 换内存芯片靠谱还是换主板靠谱
可不可以加 tf 卡或者装个云存储 APP ,为什么非要从手机固有的硬件本身入手呢?😪
2016-07-21 10:30:10 +08:00
回复了 DearTanker 创建的主题 分享发现 在用 MayType 的别更新 Chrome 了!
@wolf1981 点头像 blog 里有一篇分享
2016-07-21 09:54:00 +08:00
回复了 DearTanker 创建的主题 分享发现 在用 MayType 的别更新 Chrome 了!
我用了 stylish 扩展,应该没大问题。
2016-07-06 22:20:55 +08:00
回复了 NoBrain 创建的主题 云计算 海外主机求推荐
@zhangfan 我 blog 里有介绍
2016-07-06 21:33:24 +08:00
回复了 NoBrain 创建的主题 云计算 海外主机求推荐
在用月流量 4T 的 vps😂
1 ... 9  10  11  12  13  14  15  16  17  18 ... 29  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5410 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 06:41 · PVG 14:41 · LAX 23:41 · JFK 02:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.