#1 楼 @kooglezhang 不是要链接本地的,要链接另一台
如果 ES 不在本地,怎么修改请求的默认本地连接?
用 carrierwave-base64 https://github.com/lebedev-yury/carrierwave-base64
#1 楼 @flingfox63 谢谢了 已经解决了
resources :maps do
collection do
get :tag, constraints: { id: /[\w\d\.\-\_]+/i }
end
end
#1 楼 @flingfox63 万分感谢 原因 获取参数的时候 url 中带点 " .jpg" 获取 name 参数时 没有获得到 " .jpg" 信息,加上后就好了。。。。 请问 怎么能直接获得到 点 的参数呢?
弱弱的问一声 为什么我这没有 File.find 这个方法呢?
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://xxx1:9020;
}
location /api/user_infos/create/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://xxx2:9021;
}
请问,现在所有关于 api/user_infos/create 的访问都转发到 xxx2,请问怎么能让请求 xxx1 的同时转发到 xxx2 呢?
#1 楼 @yingce 刚才问了下同事,确定 80 被占用了,
tcp6 0 0 :::80 :::* LISTEN off (0.00/0/0)
nginx.conf 这个下面没有发现有关 80 端口的
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
1,1 Top
#3 楼 @flowerwrong 请问有没有案例之类的东东?
#1 楼 @piecehealth channel 是 rails 5 独有的新功能吗?
channel 是 rails 5 独有的新功能吗?
#1 楼 @huacnlee 已经安好了 watir-webdriver (0.9.0) 但是加载 watir-webdriver 会报错
irb(main):001:0> require 'watir-webdriver'
LoadError: cannot load such file -- watir-webdriver/locators/element_locator
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/watir-webdriver-0.9.0/lib/watir-webdriver.rb:13:in `<top (required)>'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from (irb):1
from /usr/local/bin/irb:11:in `<main>'
#3 楼 @night_7th 谢谢了~已经解决了~非常感谢