V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  strayberry  ›  全部回复第 1 页 / 共 1 页
回复总数  19
2017-02-13 16:24:18 +08:00
回复了 springmarker 创建的主题 程序员 对自己写的程序不信任,是不是经验不够导致
TDD
@yjxjn 大连有华信
东软么
2017-01-24 13:28:32 +08:00
回复了 BenX 创建的主题 macOS 10.12.3 发布了,貌似 2016 款耗电问题会有改善。
验证失败
2017-01-23 17:13:21 +08:00
回复了 jeffjade 创建的主题 程序员 那些你觉得堪称神兵利器的 Chrome 插件
IE Tab
印象笔记·剪藏
贵司招后端嘛
2016-11-14 17:06:05 +08:00
回复了 jason19659 创建的主题 酷工作 易快报 招聘 java 后端 坐标上海
请问招应届生吗 17 届
2016-09-14 21:27:45 +08:00
回复了 a421101046 创建的主题 求职 求 Java 实习 杭州 or 上海 or 大连
楼主情况和我差不多 2333
同问怎么谈薪资
2016-09-08 14:33:09 +08:00
回复了 xzg1993 创建的主题 职场话题 我想问问做技术的各位们,有没有转业的想法。
ls 需要的是 ingress
2016-07-26 15:37:00 +08:00
回复了 joey0904 创建的主题 Android motox(¥999)是不是能买到的最便宜原生 android 机了
moto g4 出了,可以美亚等黑五
2016-05-26 13:19:24 +08:00
回复了 neworld07 创建的主题 PHP 一段 php 代码报错。新手无法解决!请各位大婶帮忙看看。
还有..别用 mysql_connect 了
2016-05-26 13:18:23 +08:00
回复了 neworld07 创建的主题 PHP 一段 php 代码报错。新手无法解决!请各位大婶帮忙看看。
建议控制台里看一下 sql 语句的执行情况
2016-05-26 10:32:19 +08:00
回复了 strayberry 创建的主题 程序员 请教 nginx 502 Bad Gateway 错误的问题
已解决

原因是
自己修改过下面 2 处的配置,导致 nginx 配置文件里的设置和 php-fpm 上的设置不一样也会 502 。如果使用 unix 套接字,修改 /usr/local/php/etc/php-fpm.cnf 里设置, php 5.2 为

/tmp/php-cgi.sock
php 5.3 及以上版本为 listen = /tmp/php-cgi.sock ,同时 /usr/local/nginx/conf/nginx.conf 及其 /usr/local/nginx/conf/vhost/ 下面的虚拟主机配置里的 fastcgi_pass unix:/tmp/php-cgi.sock; 不一致就必定 502 。
有时候 unix 套接字模式下可能会 502 ,可以尝试改成 tcp/ip 的方式 php 5.2 下

/tmp/php-cgi.sock
替换为

127.0.0.1:9000
php 5.3 及以上版本 listen = /tmp/php-cgi.sock 替换为 listen = 127.0.0.1:9000 , nginx 配置文件及虚拟主机配置文件里 fastcgi_pass unix:/tmp/php-cgi.sock;替换为 fastcgi_pass 127.0.0.1:9000; 之后重启试试。



参考 https://lnmp.org/faq/lnmp-Nginx-502-Bad-Gateway.html
2016-05-25 20:46:29 +08:00
回复了 hujianxin 创建的主题 程序员 关于前后端分离的理解。
可以多理解下 MVC ?
2016-05-25 20:35:31 +08:00
回复了 strayberry 创建的主题 程序员 请教 nginx 502 Bad Gateway 错误的问题
上面为 nginx.conf 的 server 配置
2016-05-25 20:34:49 +08:00
回复了 strayberry 创建的主题 程序员 请教 nginx 502 Bad Gateway 错误的问题
server {
listen 80;
server_name;
set $root_path ' ';
root $root_path;

index index.php index.html index.htm;

try_files $uri $uri/ @rewrite;

location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}

location ~ \.php {

fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;

fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root $root_path;
}

location ~ /\.ht {
deny all;
}
}
2016-05-21 00:54:06 +08:00
回复了 rosalindest 创建的主题 职场话题 没有技术背景女 PM 想做独立开发,求助各位程序爸爸
@windfarer 活捉。。
2016-05-11 18:10:16 +08:00
回复了 egonetworks 创建的主题 推广 我们的活动没那么复杂,留言抽奖送 T 恤
test
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   933 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 23:17 · PVG 07:17 · LAX 16:17 · JFK 19:17
Developed with CodeLauncher
♥ Do have faith in what you're doing.