linux 软件

Last updated on November 20, 2024 am

🧙 Questions

☄️ Ideas

软件查询

# 查询可安装的软件
sudo yum search jdk | grep 1.8
# 查询已安装的软件
sudo yum list installed | grep docker
sudo yum list installed | grep jdk
sudo rpm -qa | grep jdk

软件操作

# 安装软件
sudo yum install httpd
# 卸载软件
sudo yum remove httpd
# 文件安装
sudo rpm -ivh pcre-devel-8.32-17.el7.x86_64.rpm

软件源配置

cd /etc/yum.repos.d
sudo vim custom.repo
[custom-jenkins]
name=custom-Jenkins-stable
baseurl=http://pkg.jenkins.io/redhat-stable
enabled=1
gpgcheck=0
#gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
# 刷新软件源
yum repolist all
yum clean all && yum makecache
# 禁用某个软件源
sudo yum-config-manager --disable custom-jenkins

httpd软件源配置

# 安装httpd createrepo
sudo yum install -y httpd
sudo yum install -y createrepo
# 把软件创建软链接 映射路径``
sudo mkdir -p /var/www/html/cdh6_parcel/
sudo ln -s /home/ispong/www/html/cdh6_parcel/cm6 /var/www/html/cdh6_parcel/
sudo chmod -R 777 /var/www/html/cdh6_parcel/
# 启动并配置httpd
sudo systemctl start httpd
sudo systemctl status httpd
sudo vim /etc/httpd/conf/httpd.conf
# === vim /etc/httpd/conf/httpd.conf ===
# 修改端口号
Listen 30108
# 修改访问用户
User ispong
Group ispong
# === vim /etc/httpd/conf/httpd.conf ===
sudo systemctl restart httpd
cd /var/www/html/cdh6_parcel/cm6/
sudo createrepo .
cd /etc/yum.repos.d
sudo vim cloudera-manager.repo
# === sudo vim cloudera-manager.repo ===
[cloudera-manager]
name=Cloudera Manager 6.2.0
baseurl=http://172.23.39.205:30108/cdh6_parcel/cm6
gpgcheck=0
enabled=1
# === sudo vim cloudera-manager.repo ===
yum clean all && yum makecache

linux 软件
https://ispong.isxcode.com/os/linux/linux 软件/
Author
ispong
Posted on
June 7, 2021
Licensed under