@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @font-face{ font-family:"黑体"; } @font-face{ font-family:"Arial"; } @font-face{ font-family:"Arial"; } @list l0:level1{ mso-level-start-at:2; mso-level-number-format:chinese-counting; mso-level-suffix:none; mso-level-text:"%1、"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0.0000pt; text-indent:0.0000pt; font-family:宋体;} p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } h1{ mso-style-name:"标题 1"; mso-style-next:正文; margin-top:17.0000pt; margin-bottom:16.5000pt; mso-para-margin-top:0.0000gd; mso-para-margin-bottom:0.0000gd; page-break-after:avoid; mso-pagination:lines-together; text-align:justify; text-justify:inter-ideograph; mso-outline-level:1; line-height:240%; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; mso-ansi-font-weight:bold; font-size:22.0000pt; mso-font-kerning:22.0000pt; } h2{ mso-style-name:"标题 2"; mso-style-noshow:yes; mso-style-next:正文; margin-top:5.0000pt; margin-bottom:5.0000pt; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; mso-pagination:none; text-align:left; mso-outline-level:2; font-family:宋体; font-weight:bold; font-size:18.0000pt; } h4{ mso-style-name:"标题 4"; mso-style-noshow:yes; mso-style-next:正文; margin-top:5.0000pt; margin-bottom:5.0000pt; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; mso-pagination:none; text-align:left; mso-outline-level:4; font-family:宋体; font-weight:bold; font-size:12.0000pt; } span.10{ font-family:'Times New Roman'; } span.15{ font-family:'Times New Roman'; color:rgb(0,0,255); text-decoration:underline; text-underline:single; } p.p{ mso-style-name:"普通\(网站\)"; margin-top:5.0000pt; margin-right:0.0000pt; margin-bottom:5.0000pt; margin-left:0.0000pt; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; mso-pagination:none; text-align:left; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:12.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ margin-top:72.0000pt; margin-bottom:72.0000pt; margin-left:90.0000pt; margin-right:90.0000pt; size:595.3000pt 841.9000pt; layout-grid:15.6000pt; mso-header-margin:42.5500pt; mso-footer-margin:49.6000pt; } div.Section0{page:Section0;}
麒麟V10安装rabbitMQ
一、配置本地yum源
1.1 挂载OS镜像文件
步骤1、把系统镜像文件上传到服务器的mnt目录下。
步骤2、将OS镜像文件挂载至“/media”目录下,命令如下:
mount -o loop /mnt/Kylin-Server-10-SP2-aarch64-Release-Build09-20210524.iso /media
返回 mount: /mnt: WARNING: source write-protected, mounted read-only. 说明挂载成功
步骤3、配置本地源:
进入/etc/yum.repos.d(yum.repos.d 是一个目录,该目录是分析 RPM 软件后所产生的软件属性依赖数据放置处);
备份/etc/yum.repos.d 下所有文件,然后删除/etc/yum.repos.d 下所有文件,新增文件 kylin_bd.repo并在文件中加入以下内容:
[kylin]
name=kylin
baseurl=file:///mnt
enabled=1
gpgcheck=0
步骤4、清除本地内存,命令如下:
# yum clean all
步骤5、把服务器的包信息下载到本地电脑缓存起来,命令如下:
# yum makecache
步骤6、升级所有包同时也升级软件和系统内核,命令如下:
# yum update
1.2 安装依赖
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
二、erlang安装
2.1 erlang安装
步骤1、把otp_src_20.3.tar.gz包上传到服务器上。
步骤2、解压包,命令如下:
tar -xvf otp_src_20.3.tar.gz
步骤3、编译
cd otp_src_20.3
./configure --prefix=/opt/erlang --without-javac
make && make install
2.2 添加环境变量
步骤1、编辑profile文件
vim /etc/profile
步骤2、添加如下内容:
export PATH=$PATH:/opt/erlang/bin
步骤3、修改完毕后,使该配置文件生效
source /etc/profile
三、安装启用RabbitMQ
3.1 安装RabbitMQ
步骤1、把RabbitMQ安装包上传至服务器上。
步骤2、执行如下命令,解压软件包
tar xvf rabbitmq-server-generic-unix-3.6.10.tar
步骤3、执行如下命令,移动目录到/usr/lcoal/下
mv rabbitmq_server-3.6.10 /usr/local/rabbitmq
步骤4、执行如下命令,编辑profile文件
vim /etc/profile
步骤5、新增如下环境变量
export PATH=$PATH:/usr/local/rabbitmq/sbin
步骤6、执行如下命令,使得环境变量生效
source /etc/profile
3.2 启动RabbitMQ
nohup ./rabbitmq-server –detached &
需要加上nohup,否则会经常down
3.3使用软件
步骤1、安装RabbitMQ管理插件
rabbitmq-plugins enable rabbitmq_management
步骤2、创建账户
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
步骤3、访问http://ip:15672,账户密码均是admin
一、使用echo命令
echo命令在Linux中非常常用,它可以用来输出文本或变量,也可以用来将文本或变量写入文件。
要在文本文件的末尾添加一行文字,可以使用以下命令:
echo “要添加的文本” >> 文件名
其中,”>>”表示追加到文件的末尾。如果文件不存在,则会自动创建文件。




