当前位置: 首页 > 科技观察

RHEL 7 新功能尝鲜:界面简洁,分类明确

时间:2023-03-14 21:16:47 科技观察

RHEL7新特性的尝鲜者:界面简洁,分类清晰https://access.redhat.com/site/downloads/)。安装还是挺顺利的,安装界面比以前简单多了,很清爽,分类也很清楚。有点奇怪,我安装的时候怕有些基础包装不上,所以选择了mini和Web类型,但是有些基础包没有装,比如ifconfig。虚拟机的网卡被识别为ens,有意思。以yumgroupinstallBase为例,可以安装一些基本的包。ifconfiglsof时可以正常。这里需要说明的是,redhat7测试的repo源貌似不可用,所以顺着地址查了一下。一点也不,我觉得应该是内测版的原因。用于直接挂载/dev/cdrom/mnt。[rhel-iso]name=RedHatEnterpriseLinux7baseurl=file:///mnt/enabled=1系统分区默认为xfs格式,当然你还是可以用ext3,ext4:[root@localhost~]#df-T文件系统类型1K-blocks已用可用已用%挂载点/dev/mapper/rhel-rootxfs3926220835913043567090410%/devtmpfsdevtmpfs50077205007720%/devtmpfstmpfs50750805075080%/dev/shmtmpfstmpfs50750826045049041%/runtmpfstmpfs50750805075080%/sys/fs/cgroup/dev/sda1xfs4949409544439949620%/boot发现rhel7开发软件版本不低。python是2.7.5,和ubuntu一样。默认情况下也会为您安装Java。perl在centos6应该是5.10,现在已经更新到5.16.3了。至于为什么更新到perl6,估计和python3一样吧。[root@localhost~]#[root@localhost~]#[root@localhost~]#python-VPython2.7.5[root@localhost~]#java-versionjavaversion"1.7.0_45"OpenJDKRuntimeEnvironment(rhel-2.4.3.4.el7-x86_64u45-b15)OpenJDK64-BitServerVM(build24.45-b08,混合模式)[root@localhost~]#[root@localhost~]#[root@localhost~]#perl-vThisisperl5,version16,subversion3(v5.16.3)builtforx86_64-linux-thread-multi(with24registeredpatches,seeperl-Vformoredetail)想安装pip但是iso没有python-pip包。rhel7官方源打不开,郁闷。本来打算用epel6试试,不行,就去epel官网看看。Epel实际上已经有了rhel7的源代码。简单测试一下rhel7的openlmi,什么是openlmi,看了一些文档,是一个类似func的集群接口工具,但不是puppet。安装yuminstallopenlmiinstallyum-yinstallopenlmi-scripts*scproot@10.10.10.71:/etc/Pegasus/client.pem/etc/pki/ca-trust/source/anchors/managed-machine-cert.pem[root@localhost~]#lmi-h10.10.10.71lmi>hwinfusername:pegasupassword:error:Failedtomakeaconnectionto"10.10.10.71":(0,'Socketerror:[Errno113]Noroutetohost')error:Nosuccessfulconnectionmade.lmi>lmi>lmi>原因是不详,在官网看了一些openlmi的介绍,用法还是挺简洁的。lmi-h${hostname}lmi>help...lmi>swsearchdjango...lmi>swinstallpython-django...lmi>exitrhel7把熟悉的sysv换成了systemd,话说这东西很强大,说实话,那个data还比较少,这里简单介绍一下systemd的用法。#CentOS6.4servicehttpd(启动|停止)#rhel7systemctl(启动|停止)httpd.service#CentOS6.4chkconfighttpd(开|关)#rhel7systemctl(启用|禁用)httpd.service$cat/usr/lib/systemd/system/httpd.service[Unit]Description=TheApacheHTTPServerAfter=network.targetremote-fs.targetnss-lookup.target[Service]Type=notifyEnvironmentFile=/etc/sysconfig/httpdExecStart=/usr/sbin/httpd$OPTIONS-DFOREGROUNDExecReload=/usr/sbin/httpd$OPTIONS-kgracefulExecStop=/usr/sbin/httpd$OPTIONS-kgraceful-stop#Wewantsystemdtogivehttpdsometimetofinishgracefully,butstillwant#ittokillhttpdafterTimeoutStopSecifsomethingwentwrongduringthe#gracefulstop.Normally,SystemdsendsSIGTERMsignalrightafterthe#ExecStop,whichwouldkillhttpd.WearesendinguselessSIGCONTheretogive#httpdtimetofinish.KillSignal=SIGCONTPrivateTmp=true[Install]WantedBy=multi-user.target会发现其实使用systemd参数更清晰。在sysv下,启动start,关闭stop,重启restart都是用$1来传递参数,但是在systemctl下,更直接一些。它与守护程序supervisord非常相似。[root@localhost~]#chkconfig--list|grepsamba注意:此输出仅显示SysV服务,不包括本机systemd服务。SysV配置数据可能会被本机systemd配置覆盖。如果您想列出systemd服务,请执行“systemctllist-unit-files”。要查看为特定目标启用的服务,请执行“systemctllist-dependencies[target]”。[root@localhost~]#[root@localhost~]#[root@localhost~]#systemctllist-dependenciessambasamba.service[root@localhost~]#数据库真的转了mariadb,我去安装mysql的时候,他会直接去安装mariadb,好像mariadb是大势所趋。[root@localhost~]#原文:http://rfyiamcool.blog.51cto.com/1030776/1426550[root@localhost~]#yum-yinstallmysql插件加载:langpacks,product-id,subscription-managerThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.file:///mnt/repodata/repomd.xml:[Errno14]curl#37-“无法打开文件/mnt/repodata/repomd.xml”正在尝试另一个镜像。包一:mariadb-5.5.33a-3.el7.x86_64已经安装,是没有任何处理的***版本[root@localhost~]#[root@localhost~]#[root@localhost~]#yum-yinstallmysql-服务器已加载插件:langpacks、product-id、subscription-manager此系统未注册到RedHatSubscriptionManagement。您可以使用subscription-managertoregister.file:///mnt/repodata/repomd.xml:[Errno14]curl#37-"Couldn'topenfile/mnt/repodata/repomd.xml"正在尝试另一个镜像。解决依赖关系-->检查事务--->包mariadb-galera-server.x86_64.1.5.5.37-2.el7将被安装-->处理依赖关系mariadb-galera-common(x86-64)=1:5.5。37-2.el7,包1需要:mariadb-galera-server-5.5.37-2.el7.x86_64-->处理依赖galera>=25.3.3,包1需要:mariadb-galera-server-5.5.37-2.el7.x86_64requires-->processingdependencyperl-DBI,whichisusedbypackage1:mariadb-galera-server-5.5.37-2.el7.x86_64requires-->处理依赖perl-DBD-MySQL,包1需要:mariadb-galera-server-5.5.37-2.el7.x86_64-->processingdependencyperl(DBI),包1需要:mariadb-galera-server-5.5.37-2.el7.x86_64-->检查事务--->包galera.x86_64.0.25.3.5-5.el7将被安装-->处理依赖nmap-ncat,这是包galera-所需要的25.3.5-5.el7.x86_64--->包mariadb-galera-common.x86_64.1.5.5.37-2.el7将被安装----->将安装包perl-DBD-MySQL.x86_64.0.4.023-2.el7--->将安装包perl-DBI.x86_64.0.1.627-1.el7-->处理依赖perl(RPC::PlClient)>=0.2000,perl-DBI-1.627-1.el7.x86_64软件包要求-->Processingdependencyperl(RPC::PlServer)>=0.2001,perl-DBI-1.627-软件包要求需要1.el7.x86_64-->检查事务--->包nmap-ncat.x86_64.2.6.40-2。将安装el7--->将安装packageperl-PlRPC.noarch.0.0.2020-12.el7-->processingdependencyperl(Net::Daemon)>=0.13,whichisinstalledbypackageperl-PlRPC-0.2020-12.el7.noarch需要-->处理依赖关系perl(Net::Daemon::Log),这是包perl-PlRPC-0.2020-12.el7.noarch所需要的-->处理依赖关系perl(Net::Daemon::Test),这是包perl-PlRPC-0.2020-12.el7.noarch所必需的-->检查事务--->包perl-Net-Daemon.noarch.0.0。48-4.el7会安装-->resolvedependenciescompletedependencyresolution=========================================================================================================================================包体系结构版本源大小=============================================================================================================================================安装:mariadb-galera-serverx86_641:5.5.37-2.el7epel11M安装依赖项:galerax86_6425.3.5-5.el7epel1.1Mmariadb-galera-commonx86_641:5.5.37-2.el7epel212knmap-ncatx86_642:6.40-2。el7rhel-iso198kperl-DBD-MySQLx86_644.07risperelokisperl-2。-DBIx86_641.627-1.el7rhel-iso801kperl-Net-Daemonnoarch0.48-4.el7rhel-iso51kperl-PlRPCnoarch0.2020-12.el7期待centos7的到来。使用rhel7,总觉得不爽,感觉别扭。我们先做这个,等有时间再做。