JIT 是 just in time 的缩写, 也就是即时编译编译器。
在运行时 JIT 会把翻译过的机器码保存起来,以备下次使用,
因此从理论上来说,采用该 JIT 技术可以接近以前纯编译技术。
遇到了这样的警告信息, 意思好像是native code不兼容用不了, fallback成使用byte code了1
2=INFO REPORT==== 29-Jun-2016::20:40:28 ===
<HiPE (v 3.9.3)> Warning: not loading native code for module mod_player: it was compiled for an incompatible runtime system; please regenerate native code for this runtime system
lib/kernel/src/hipe_unified_loader.erl1
2
3
4
5
6case hipe_bifs:check_crc(CheckSum) of
false ->
?msg("Warning: not loading native code for module ~w: "
"it was compiled for an incompatible runtime system; "
"please regenerate native code for this runtime system\n", [Mod]),
bad_crc;
erts/emulator/hipe/hipe_bif0.c1
2
3
4
5
6
7
8
9
10BIF_RETTYPE hipe_bifs_check_crc_1(BIF_ALIST_1)
{
Uint crc;
if (!term_to_Uint(BIF_ARG_1, &crc))
BIF_ERROR(BIF_P, BADARG);
if (crc == HIPE_ERTS_CHECKSUM)
BIF_RET(am_true);
BIF_RET(am_false);
}
根据下面链接的话
https://mitnk.com/wiki/2012/05/programming_with_sockets_in_erlang/
If the controlling process dies, then the socket will be automatically closed.
有空可以看看代码
关掉firewalld之后有一个docker服务起不来了, 报错如下:1
2
3
4
5
6
7
8
9
10# docker-compose up -d shadowsocks
Creating ss_server
ERROR: for shadowsocks driver failed programming external connectivity on endpoint ss_server (ee95b8b78a095b2838b8e415a9e52d3807cdcec99f3486d7a9ce47101ee794f9): iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8388 -j DNAT --to-destination 172.23.0.3:8388 ! -i br-d4333300e60a: iptables: No chain/target/match by that name.
(exit status 1)
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 63, in main
AttributeError: 'ProjectError' object has no attribute 'msg'
docker-compose returned -1
启动firewalld之后问题解决
个中缘由日后再深入挖掘...
pkill可以使用名称给进程发信号,
使用pkill之前,可以用pgrep命令确认一下1
2
3
4
5$ pgrep -a php5-fpm
26677 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
26680 php-fpm: pool www
26681 php-fpm: pool www
$ sudo pkill -HUP php5-fpm
shift+p, 按CPU占用量降序显示
shift+m, 按内存占用量降序显示
VIRT -- Virtual Image (kb)
The total amount of virtual memory used by the task. It includes all code, data and shared libraries
plus pages that have been swapped out and pages that have been mapped but not used.
RES -- Resident size (kb)
The non-swapped physical memory a task has used.
SHR -- Shared Mem size (kb)
The amount of shared memory used by a task. It simply reflects
memory that could be potentially shared with other processes.
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true