Rocky Linux出到9.1了, 试一下
默认都安装完了
Rocky Linux 9.1自带了VMWare Tools, 可以直接使用
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' -i.bak /etc/yum.repos.d/rocky-*.repo
sudo dnf makecache
更新
sudo yum -y update
sudo yum -y upgrade
# 安装依赖
sudo yum -y install gcc gcc-c++ kernel-devel pcsc-lite-libs elfutils-libelf-devel make
下载 https://www.vmware.com/go/getworkstation-linux
放到文件夹,进入,执行
sudo chmod +x VMware-Workstation-Full-17.0.0-20800274.x86_64.bundle
sudo ./VMware-Workstation-Full-17.0.0-20800274.x86_64.bundle
GitHub - mkubecek/vmware-host-modules at workstation-17.0.0
传入服务器,解压编译安装, 如果有问题,重启
unzip vmware-host-modules-workstation-17.0.0.zip
cd vmware-host-modules-workstation-17.0.0
sudo make
sudo make install
在任务栏打开VMWare,正常安装使用即可
sudo yum -y remove *openjdk*
下载rpm版jdk1.8,进入目录执行
sudo rpm -ivh jdk-8u311-linux-x64.rpm
sudo curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -
sudo yum install -y nodejs
配置Node.js源
# npm官方源
npm config set registry https://registry.npmjs.org
# npm淘宝源
npm config set registry https://registry.npm.taobao.org
# 安装yarn 并设置为淘宝源
sudo npm install -g yarn
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
# 安装cnpm 并设置为淘宝源
sudo npm install -g cnpm -registry=https://registry.npm.taobao.org
# 安装vue脚手架3
sudo cnpm install -g @vue/cli@3
sudo yum -y install subversion
sudo yum -y install git
下载MySQL MySQL :: Download MySQL Community Server
Rocky Linux的软件包格式为rpm。安装:
中途 解压, 放入目录, cd目录,执行
sudo rpm -ivh mysql-community-common-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-client-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-server-5.7.36-1.el7.x86_64.rpm
中途如果遇到libncurses.so.5()缺失等信息,执行
sudo yum -y install libncurses*
sudo dnf --enablerepo=devel -y install ncurses-compat-libs
启动MySQL
sudo service mysqld start
设置开机启动
sudo systemctl enable mysqld
sudo systemctl daemon-reload
获取安装mysql后生成的临时密码,用于登录
sudo grep 'temporary password' /var/log/mysqld.log
如果出现如下列信息,密码为: iaJd,l26MNs/
2021-09-25T04:25:40.643274Z 1 [Note] A temporary password is generated for root@localhost: iaJd,l26MNs/
登录MySQL,密码如上
sudo mysql -uroot -p
修改root登录密码为root
# 降低密码规则级别
set global validate_password_policy=LOW;# 降低密码长度
set global validate_password_length=1;# 修改root密码为root
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
刷新, 退出
flush privileges;
quit;
下载rpm包
sudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
禁用postgresql模块
sudo dnf -qy module disable postgresql
如果过程中有是否选项,全选y, 如果报错, 也无所谓, 跳过继续
清理yum缓存
sudo dnf clean all
安装PostgreSQL 11服务器和客户端软件包
sudo dnf -y install postgresql11-server postgresql11
数据库初始化
sudo /usr/pgsql-11/bin/postgresql-11-setup initdb
sudo systemctl enable postgresql-11
sudo systemctl start postgresql-11
切换用户
sudo su - postgres
进入pgsql命令行
psql
进入后执行SQL
ALTER USER postgres WITH PASSWORD 'postgres';
# 退出
exit;
# 修改监听 改为listen_addresses = '*'
sudo vim /var/lib/pgsql/11/data/postgresql.conf# 修改认证文件/var/lib/pgsql/data/pg_hba.conf,登陆使用密码。
# 把这个配置文件中的ipv4认证METHOD的ident修改为md5,ip改为0.0.0.0/0,可以实现用账户和密码来访问数据库,重启生效
sudo vim /var/lib/pgsql/11/data/pg_hba.conf
sudo systemctl restart postgresql-11
sudo yum -y install redis
修改配置文件
sudo vim /etc/redis/redis.conf
重启
sudo systemctl restart redis
sudo systemctl enable redis
sudo yum -y install nginx
修改配置文件
sudo vim /etc/nginx/nginx.conf
重启
sudo systemctl restart nginx
sudo systemctl enable nginx
Rocky Linux的软件包格式为rpm。安装:
# 安装依赖
sudo yum -y install libXScrnSaver# 安装网盘
sudo rpm -ivh baidunetdisk_4.17.7_x86_64.rpm
如果打不开,需要将
libcrypto.so.10、libcups.so.2、libgssapi_krb5.so.2、libk5crypto.so.3、libkrb5.so.3、libkrb5support.so.0、libssl.so.10放到/opt/baidunetdisk下面
sudo mv ./so/* /opt/baidunetdisk/
具体见Fedora32 成功运行百度网盘 baidunetdisk 附方法和包【fedora吧】_百度贴吧
WPS Office 2019 for Linux-支持多版本下载_WPS官方网站
Rocky Linux的软件包格式为rpm。安装:
# 安装依赖
sudo yum -y install mesa-libGLU# 安装wps
sudo rpm -ivh wps-office-11.1.0.11691-1.x86_64.rpm
wps有可能会报缺字体,缺的字体如下,双击安装
百度网盘 请输入提取码 提取码:lexo
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo yum check-update
sudo yum install -y code
sudo dnf -y install epel-release rpmfusion-free-release
sudo dnf update
sudo yum -y install vlc
github下载electerm最新版 Rocky Linux的软件包格式为rpm。安装:
https://github.com/electerm/electerm/releases/download/v1.25.16/electerm-1.25.16-linux-x86_64.rpm
sudo rpm -ivh electerm-1.25.16-linux-x86_64.rpm
下载edge浏览器 Rocky Linux的软件包格式为rpm。安装:
sudo yum -y install libatomic
sudo yum -y install liberation-fonts
sudo rpm -ivh microsoft-edge-beta-95.0.1020.30-1.x86_64.rpm# 最新版本
sudo rpm -ivh microsoft-edge-stable-110.0.1587.63-1.x86_64.rpm
# 尝试下载一下谷歌94版本,好像也没问题
sudo rpm -ivh google-chrome-stable_current_x86_64_94.0.4606.81.rpm
# 最新版本
sudo rpm -ivh microsoft-edge-stable-110.0.1587.63-1.x86_64.rpm