最近安装了银河麒麟server版本,整理下遇到的一些小问题
1、vmware安装Kylin-Server-V10-SP3-General-Release-2303-X86_64虚拟机完成后,桌面窗口很小,安装vmwaretools后解决,下载地址http://softwareupdate.vmware.com/cds/vmw-desktop/ws/15.5.1/15018445/windows/packages
csdn下载地址https://download.csdn.net/download/weixin_45548465/89919044
,解压tools-linux.tar,麒麟虚拟机挂载VMware-tools-linux-11.0.0-14549434.iso,麒麟虚拟机解压iso,找到vmware-install.pl脚本,执行脚本,一路回车安装完成后,界面就变大了
sudo ./vmware-install.pl
2、挂载本地镜像源
3、离线安装RabbitMQ
根据对应操作系统版本下载相关安装包,下载地址https://update.cs2c.com.cn/NS/V10/
csdn下载地址https://download.csdn.net/download/weixin_45548465/89921260
相关依赖包和安装包下载
openssl-1.1.1f-15.p23.ky10.x86_64.rpm
openssl-help-1.1.1f-15.p23.ky10.noarch.rpm
openssl-libs-1.1.1f-15.p23.ky10.x86_64.rpm
erlang-asn1-21.3.3-4.ky10.x86_64.rpm
erlang-compiler-21.3.3-4.ky10.x86_64.rpm
erlang-crypto-21.3.3-4.ky10.x86_64.rpm
erlang-eldap-21.3.3-4.ky10.x86_64.rpm
erlang-erts-21.3.3-4.ky10.x86_64.rpm
erlang-hipe-21.3.3-4.ky10.x86_64.rpm
erlang-inets-21.3.3-4.ky10.x86_64.rpm
erlang-kernel-21.3.3-4.ky10.x86_64.rpm
erlang-mnesia-21.3.3-4.ky10.x86_64.rpm
erlang-os_mon-21.3.3-4.ky10.x86_64.rpm
erlang-otp_mibs-21.3.3-4.ky10.x86_64.rpm
erlang-public_key-21.3.3-4.ky10.x86_64.rpm
erlang-runtime_tools-21.3.3-4.ky10.x86_64.rpm
erlang-sasl-21.3.3-4.ky10.x86_64.rpm
erlang-snmp-21.3.3-4.ky10.x86_64.rpm
erlang-ssl-21.3.3-4.ky10.x86_64.rpm
erlang-stdlib-21.3.3-4.ky10.x86_64.rpm
erlang-syntax_tools-21.3.3-4.ky10.x86_64.rpm
erlang-tools-21.3.3-4.ky10.x86_64.rpm
erlang-xmerl-21.3.3-4.ky10.x86_64.rpm
erlang-sd_notify-1.0-1.ky10.x86_64.rpm (这个包在base目录下,其他包在updates目录下)
rabbitmq-server-3.7.23-1.ky10.x86_64.rpm
操作系统如果已经安装openssl,需要升级下openssl
rpm -ivh openssl-libs-1.1.1f-15.p23.ky10.x86_64.rpm --forcle
rpm -ivh openssl-help-1.1.1f-15.p23.ky10.noarch.rpm --forcle
rpm -ivh openssl-1.1.1f-15.p23.ky10.x86_64.rpm --forcle
安装erl依赖,安装rabbitmq
yum install -y erl*
rpm -ivh rabbitmq-server-3.7.23-1.ky10.x86_64.rpm
启动rabbitmq并设置开机自启
systemctl start rabbitmq-server && systemctl enable rabbitmq-server
安装rabbitmq插件
rabbitmq-plugins enable rabbitmq_management
rabbitmq开通STOMP通道
rabbitmq-plugins enable rabbitmq_web_stomp
界面管理账号创建与授权(5步骤)
- 添加管理员账号
rabbitmqctl add_user rabbitadmin 123456
- 分配用户标签为管理员
rabbitmqctl set_user_tags rabbitadmin administrator
- 创建和赋角色完成后查看并确认
rabbitmqctl list_users
-
登录rabbitmq管理界面(切记:访问之前检查防火墙问题)
浏览器输入地址:http://服务器IP地址:15672/
用户名/密码:rabbitadmin/123456
-
用户授权问题
rabbitmqctl set_permissions -p "/" rabbitadmin ".*" ".*" ".*"
4、新增一块硬盘,如何扩容。
创建物理卷pv
pvcreate /dev/sdb
创建卷组vg,命名卷组名为vg1,vgdisplay可显示卷组具体信息
vgcreate vg1 /dev/sdb
vgdisplay
从vg1卷组里面创建2个逻辑卷,使用空闲50%空间,命名为lv1和lv2
lvcreate -l +50%FREE -n lv1 vg1
lvcreate -l +50%FREE -n lv2 vg1
lvdisplay
格式化逻辑卷为xfs格式
mkfs.xfs /dev/vg1/lv1
mkfs.xfs /dev/vg1/lv2
实现自动挂载
还剩余2G未分配,继续分配挂载