yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
wget http://erlang.org/download/otp_src_19.3.tar.gz
tar -xvzf otp_src_19.3.tar.gz
cd otp_src_19.3
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
make
make install
vim /etc/profile
添加如下
ERLANG_HOME=/usr/local/erlang
PATH=$PATH:$ERLANG_HOME/bin
export PATH ERLANG_HOME
source /etc/profile
erl
/etc/profile
导致无法使用命令
/bin/vim /etc/profile
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.3/rabbitmq-server-generic-unix-3.6.3.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.3.tar.xz
cd rabbitmq_server-3.6.3/sbin/
./rabbitmq-plugins enable rabbitmq_management
./rabbitmq-server -detached
./rabbitmqctl add_user admin 123456
./rabbitmqctl set_user_tags admin administrator
./rabbitmqctl add_vhost test
./rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
./rabbitmqctl set_permissions -p "test" admin ".*" ".*" ".*"
./rabbitmqctl stop_app
./rabbitmqctl start_app
sudo apt install rabbitmq-server
即可find / -name "rabbitmq" -type d 2>/dev/null |xargs ls
/etc/rabbitmq:
rabbitmq-env.conf
/usr/lib/ocf/resource.d/rabbitmq:
rabbitmq-server
/usr/lib/rabbitmq:
bin lib
/usr/share/rabbitmq:
rabbitmq-env.conf
/var/lib/rabbitmq:
mnesia
/var/log/rabbitmq:
[email protected] [email protected] startup_err startup_log
service rabbitmq-server status
service rabbitmq-server restart
/usr/lib/rabbitmq/bin
目录下
rabbitmqctl add_user admin 123456
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"