CentOS7.6一些常用软件安装

下载DVD版的CentOS7.6以后,使用最小安装,安装前先设置好网络,nat模式。

查看ip地址:ip addr

解决ssh客户端The remote SSH server rejected X11 forwarding request问题:
vi /etc/ssh/sshd_config
使用/X11Forwarding定位到该关键字,按i进入插入模式,修改为yes
去掉#UseLogin no的注释
按esc,:wq保存退出,或者:q!放弃修改退出
重启服务:systemctl restart sshd.service
如果还不行,就安装yum install xorg-x11-xauth

解决虚拟机时间不对的情况
安装ntp:yum –y install ntp
同步时间:ntpdate -d cn.pool.ntp.org
写入硬件:hwclock -w

关闭防火墙:
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld

安装JDK
下载jdk的rpm包
#rpm包的安装格式
rpm -ivh 包全名
选项:
-i(install) 安装
-v(verbose) 显示详细信息
-h(hash) 显示进度
–nodeps 不检测依赖性
#RPM包的升级格式

rpm -Uvh 包全名
选项:
-U (upgrade) 升级
#RPM包的卸载格式

rpm -e 包名
选项:
-e (erase) 卸载
–nodeps 不检测依赖性

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值