我正在使用通配符server_name.我想将example.com(配置为*.example.com)的所有子域重定向到foo.com除外xyz.example.com
我有如下配置
server {
listen 80;
server_name *.example.com;
location / {
proxy_pass http://$1.foo.com;
}
}
Run Code Online (Sandbox Code Playgroud)
我不想改变任何请求 xyz.example.com
在数据库上进行备份时遇到问题包含大约50个模式,每个模式有大约100个表.
pg_dump抛出以下错误表明要增加max_locks_per_transaction.
pg_dump: WARNING: out of shared memory
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: out of shared memory
HINT: You might need to increase max_locks_per_transaction.
pg_dump: The command was: SELECT tableoid, oid, prsname, prsnamespace, prsstart::oid, prstoken::oid, prsend::oid, prsheadline::oid, prslextype::oid FROM pg_ts_parser
Run Code Online (Sandbox Code Playgroud)
更新max_locks_per_transaction到256 in postgresql.conf并没有解决问题.
有没有可能导致这个问题的可能性?
编辑:(2016年5月7日)
Postgresql版本= 9.1
操作系统= Ubuntu 14.04.2 LTS
shared_buffersin postgresql.conf= 2GB
编辑:(2016年5月9日)
我的postgres.conf
maintenance_work_mem = 640MB
wal_buffers = 64MB
shared_buffers = 2GB
max_connections = 100 …Run Code Online (Sandbox Code Playgroud) 我已经对npm和webpack做出了反应.我正在尝试添加单元测试.
我正在使用我的index.html中包含的CDN中的jQuery,而不是使用节点模块.
我在组件中使用jQuery Test1,我添加了单元测试用例.
现在,当我执行测试用例时,我收到错误,说
ReferenceError: $ is not defined
我明白Jest无法解析它,因为我没有在Component中导入jQuery导入.
问题是,如何让Jest了解外部JS?
我想从中插入/更新行ID(PrimaryKey) org.springframework.jdbc.core.JdbcTemplate.batchUpdate
有没有办法像这样使用KeyHolder 来插入/更新行ID.
jestjs ×1
nginx ×1
npm ×1
pg-dump ×1
postgresql ×1
reactjs ×1
spring ×1
spring-jdbc ×1
sql ×1
unit-testing ×1