erlang

lunix 下安装配置rabbitmq

左心房为你撑大大i 提交于 2019-12-06 04:30:21
RabbitMQ 安装 安装kernel-devel、ncurses-devel、erlang 安装依赖环境 yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel 下载最新 Erlang 21.0 wget http://erlang.org/download/otp_src_21.0.tar.gz 解压 tar -xvzf otp_src_21.0.tar.gz 配置 ./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac make make install 配置/etc/profile ERLANG_HOME=/usr/local/erlang PATH=$PATH:$JAVA_HOME/bin:$ERLANG_HOME/bin 使其生效 source /etc/profile echo $PATH 检验erl:输入命令 erl 安装 rabbitmq wget http://www.rabbitmq.com/releases

How do I install LFE on Ubuntu Karmic?

隐身守侯 提交于 2019-12-06 04:28:08
问题 Erlang was already installed: $dpkg -l|grep erlang ii erlang 1:13.b.3-dfsg-2ubuntu2 Concurrent, real-time, distributed function ii erlang-appmon 1:13.b.3-dfsg-2ubuntu2 Erlang/OTP application monitor ii erlang-asn1 1:13.b.3-dfsg-2ubuntu2 Erlang/OTP modules for ASN.1 support ii erlang-base 1:13.b.3-dfsg-2ubuntu2 Erlang/OTP virtual machine and base applica ii erlang-common-test 1:13.b.3-dfsg-2ubuntu2 Erlang/OTP application for automated testin ii erlang-debugger 1:13.b.3-dfsg-2ubuntu2 Erlang/OTP

linux安装rabbitmq ssm集成rabbitmq

随声附和 提交于 2019-12-06 04:17:32
rabbitmq 3.8.0 & erlang 22.1 源码编译安装 摘自 https://www.cnblogs.com/amosli/p/11765483.html 1.安装erlang编译依赖 sudo yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git1.2.下载erlang22.1源码包 wget http://erlang.org/download/otp_src_22.1.tar.gz1.3 编译并安装 # 解压 tar -zvxf otp_src_22.1.tar.gz cd otp_src_22.1 #编译&安装 ./otp_build autoconf ./configure && make && sudo make install 1.4.验证 erl -version Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.5 或 erl Erlang/OTP 22 [erts-10.5] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe]

Erlang: how to disable “crash dump” & “core dump” generation?

北城以北 提交于 2019-12-06 04:14:37
问题 Is there any way to disable the generation of "crash dump" & "core dump" files when running 'erl' ? PS: I know about the "+d" option of erl but I want to completely disable the generation of crash/core dumps. 回答1: If you are into dirty patching, you can insert a return statement right at the top of the erl_crash_dump_v function in break.c, and recompile. 回答2: You may also set the ERL_CRASH_DUMP environment variable to "/dev/null". It designates to which file the crash dump should be written.

iterate through each file in a directory

ぃ、小莉子 提交于 2019-12-06 03:59:36
问题 erlang is a strange language to me, this week i've been playing with multiple languages and I've come here for help often, now I'm on erlang and I'm stuck once again :) Basically All i'm trying to do is the following but in erlang: Dim objFSO, objFile, objFolder Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(currentDirectory)) For Each objFile in objFolder.Files do something with the file do something else do more stuff Next The closest i've

Erlang: is there an API to 'epmd'?

一笑奈何 提交于 2019-12-06 03:49:34
问题 Is there a way to query the name table that epmd daemon manages? The nodes() function isn't very helpful on that front. NOTE: I am looking for an API aside from parsing the output generated through stdout. 回答1: To query nodes visible for epmd, call: EpmdModule = net_kernel:epmd_module(). % erl_epmd by default EpmdModule:names(). To get a list of connected nodes and their ports: erlang:system_info(dist). erlang:system_info(dist_ctrl). The first call returns you the table in a crash dump format

Erlang and binary with cyrillic

我是研究僧i 提交于 2019-12-06 03:29:22
问题 I need to be able to use binaries with Cyrillic characters in them. I tried just writing <<"абвгд">> but I got a badarg error. How can I work with Cyrillic (or unicode) strings in Erlang? 回答1: If you want to input the above expression in erlang shell , please read unicode module user manual. Function character_to_binary , and character_to_list are both reversable function. The following are an example: (emacs@yus-iMac.local)37> io:getopts(). [{expand_fun,#Fun<group.0.33302583>}, {echo,true},

http post request erlang

眉间皱痕 提交于 2019-12-06 03:28:43
问题 I have a couple of functions that perform HTTP POST/GET/HEAD requests. For the POST request I use this: http:request(post, {Url, [], ContentType, Body}, [], []). While for the HEAD/GET I use: http:request(Method, {Url, []}, [], []) How can I write this two calls in a unique one? POST request has those two additional variables with respect to GET/HEAD request. I tried with empty lists but I got: ** exception error: no function clause matching Thank you very much 回答1: To use the call to httpc

Tsung error: can't start newbeam on host

大憨熊 提交于 2019-12-06 03:20:37
I have been trying to get tsung to connect to a box I have running kubuntu 12.04 Here is the client portion of my config <clients> <client host="klaptop" weight="1" maxusers="500"/> </clients> I run tsung with the following command tsung -f /var/tsung/xml/config.xml -l /var/tsung/logs/ start I get the following error in my tsung_controller log file =INFO REPORT==== 20-Jun-2012::15:06:01 === ts_config_server:(0:<0.72.0>) Can't start newbeam on host klaptop (reason: timeout) ! Aborting! I have read the manual's trouble shooting and tried to make sure that all of my bases are covered (same erlang

What other systems beside Erlang are based on “Green Processes”?

喜欢而已 提交于 2019-12-06 03:17:35
问题 I was reading this informative page on Green Thread (Wikipedia) and I wonder: what other programming systems rely on "green processes" beside Erlang? Edit : " Green Thread != Green Process " Green Process based Erlang Inferno Green Thread based Go Native Process based C, C++ Updated : Nobody answered the question directly and so I have accepted an answer that provided me with more information with regards to Green Processes in general. 回答1: Regarding the whole "green thread" as a name, see