CENTOS7 system Operation |
cd/etc/ yum.repos.d/ mv Centos-base.repo Centos-base.repo_back wget-o/etc/ Yum.repos.d/centos-base.repo http://mirrors.aliyun.com/repo/centos-7.repo yum makecache yum Clean all |
source Generate cache clear old cache |
vim/etc/ Sudoers liuyy all= (All) All |
Modify the use of sudo permissions switch to root role edit sudoers file find root all= (all) All add: liuyy all= (All) All |
sudo yum install gcc |
Installing GCC |
sudo yum install gcc-c++ |
Installing the C + + compiler |
Unzip Pcre-8.38.zip CD pcre-8.38 sudo./configure--prefix=/usr/local/application/system/pcre sudo make sudo make install |
Compiling and installing Pcre |
Erlang Installation |
sudo Yum install OpenSSL sudo Yum Install Ncurses-devel sudo Yum Install Openssl-devel sudo yum install unixodbc-devel |
erlang Dependency Package |
rz erlang_src_18.3.tar.gz tar- zxvf erlang_src_18.3.tar.gz cd otp_src_18.3/ sudo./configure-- prefix=/usr/local/application/erlang --with-ssl --enable-threads --enable-smp-support -- Enable-kernel-poll --enable-hipe --without-javac sudo make sudo make install |
Unzip and go to the folder Compile the source code and install it, pay attention to install the dependent package |
|
|
RABBITMQ Installation |
sudo yum install Xmlto |
RABBITMQ Install dependent Packages |
RZ RABBITMQ-SERVER-GENERIC-UNIX-3.6.0.TAR.XZ |
Upload 3.6.0 RABBITMQ |
Xz-d RABBITMQ-SERVER-GENERIC-UNIX-3.6.0.TAR.XZ TAR-XVF rabbitmq-server-generic-unix-3.6.0.tar-c/usr/local/application/ MV rabbitmq_server-3.6.0 RABBITMQ |
Upload, unzip, rename |
|
|
Environment variables |
sudo vim/etc/profile |
|
Export path= $PATH:/usr/local/application/erlang/bin Export path= $PATH:/usr/local/application/rabbitmq/sbin |
Add a bin reference to Erlang Add Sbin reference to RABBITMQ |
Source/etc/profile |
Apply Environment variables |
|
|
Rabbit command operation |
Cd/usr/local/application/rabbitmq ./rabbitmq-server-detached |
Background boot |
./rabbitmq-plugins Enable Rabbitmq_management |
Start the management console |
./rabbitmqctl Add_user Admin Admin |
Create an account with an account name password of admin |
./rabbitmqctl set_user_tags Administrator |
Set the admin permissions to administrator |
Firewall-cmd--zone=public--add-port=15672/tcp--permanent |
Open 15672 port number, allow extranet access to RABBITMQ console |
Firewall-cmd--reload |
Restart |
Access in Browser: http://localhost:15672/ User name password: admin/admin Login successful |