我的服务在EC2中运行(在systemd下)。这是一个为.Net Core 2.1构建的独立应用程序。有时(一周几次)会随着SEGV崩溃。
4月30日21:20:51 ip-10-4-226-55内核:陷阱:App.Name [26176]常规保护ip:7f22da3609da sp:7f1fedf11510 libc-2.26.so中的错误0:[7f22da2e3000 + 1ad000]
4月30日21:20:51 ip-10-4-226-55 systemd:appname.service:主进程已退出,代码=已终止,状态= 11 / SEGV
4月30日21:20:51 ip-10-4-226-55 systemd:单元appname.service进入失败状态。
4月30日21:20:51 ip-10-4-226-55 systemd:appname.service失败。
由于某种原因,不会创建崩溃转储(即使我删除了大小限制)。我如何进一步调查问题?问题的根源是什么?
不是真正的问题,而是我不满意的事情。我正在使用react+ typescript+ css modules+ https://material-ui-next.com/。问题是,当我需要为材质 ui 组件设置样式时,我必须使用!important很多。问题是是否有一种方法可以在没有important. 我创建了一个示例项目来重现问题https://github.com/halkar/test-css-modules
我有两个返回Observable的方法:
Observable<String> firstObservable();
Observable<String> secondObservable(String value);
Run Code Online (Sandbox Code Playgroud)
对于第一个Observable的每个结果,我得到第二个Observable的新实例.对于来自第二个observable的每个结果,我将返回具有组合结果的对象.
firstObservable -> x----x----x----x----x
\ \ \ \ \
secondObservable -> y(x)-y(x)-y(x)-y(x)-y(x)
\ \ \ \ \
result -> {x,y}-{x,y}-{x,y}-{x,y}-{x,y}
Run Code Online (Sandbox Code Playgroud)
如何才能做到这一点?
我正在尝试安装pm2模块,但我遇到了这个错误.操作系统是Ubuntu 14.04 Beta2.Node.js版本是0.10.25,npm - 1.4.7.我究竟做错了什么?
halkar@halkar-nb-ubuntu:~/source$ sudo npm install pm2 -g
.......
npm http 304 https://registry.npmjs.org/fsevents
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/recursive-readdir
npm http 304 https://registry.npmjs.org/configurable
npm WARN optional dep failed, continuing fsevents@0.2.0
> usage@0.3.9 install /usr/lib/node_modules/pm2/node_modules/usage
> node-gyp rebuild
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) …Run Code Online (Sandbox Code Playgroud) 我创建了自己的主题 import { createMuiTheme } from 'material-ui/styles';
export const MyTheme = createMuiTheme({
palette: {
primary: {
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
},
secondary: {
light: '#ff7961',
main: '#f44336',
dark: '#ba000d',
contrastText: '#000',
},
error: {
light: '#FF5F57',
main: '#CE160C',
dark: '#380300',
//contrastText: will be calculated to contast with palette.primary.main
}
}
});
Run Code Online (Sandbox Code Playgroud)
在我的应用程序中使用它
<MuiThemeProvider theme={MyTheme}>
<AppContainer>
<BrowserRouter children={ routes } basename={ baseUrl } />
</AppContainer>
</MuiThemeProvider>
Run Code Online (Sandbox Code Playgroud)
css ×2
material-ui ×2
reactjs ×2
typescript ×2
.net ×1
.net-core ×1
amazon-ec2 ×1
asp.net-core ×1
css-modules ×1
java ×1
node.js ×1
npm ×1
pm2 ×1
rx-android ×1
rx-java ×1