自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

RHEL 7 新功能嘗鮮:界面簡潔,分類明確

運維 系統(tǒng)運維
半夜起來看世界杯,沒啥激情,但是又怕錯誤意大利和英格蘭的比賽,就看了RHEL 7相關(guān)新功能的介紹,安裝還算順利,安裝的界面比以前簡潔的多,很清爽,分類很是明確。

半夜起來看世界杯,沒啥激情,但是又怕錯誤意大利和英格蘭的比賽,就看了RHEL 7相關(guān)新功能的介紹(RHEL 7的下載地址: https://access.redhat.com/site/downloads/ )。

安裝還算順利,安裝的界面比以前簡潔的多,很清爽,分類很是明確。

有些奇怪的是,我安裝的時候,怕有些基礎(chǔ)的包沒有裝上去,所以選定了mini和Web的類型,結(jié)果還是有些基礎(chǔ)的包沒有安裝,比如 ifconfig 。虛擬機(jī)的網(wǎng)卡,被識別為ens,有意思。

    wKioL1Oc-DfAOgXdAALmMK4uqD8902.jpg

  1. yum groupinstall Base 

 這樣的話,就可以把一些基礎(chǔ)的包打上??梢哉5臅r候ifconfig lsof  。

這里需要說明的是,redhat7的測試的repo源貌似不能用,我跟著地址看了下。壓根就沒有,我想應(yīng)該還是測試版的原因吧。 直接mount /dev/cdrom /mnt用的。

  1. [rhel-iso] 
  2. name=Red Hat Enterprise Linux 7 
  3. baseurl=file:///mnt/ 
  4. enabled=1 

系統(tǒng)的分區(qū)默認(rèn)是xfs格式,當(dāng)然你還是可以用ext3,ext4的:

  1. [root@localhost ~]# df -T 
  2. 文件系統(tǒng)              類型     1K-blocks    已用     可用 已用% 掛載點 
  3. /dev/mapper/rhel-root xfs       39262208 3591304 35670904   10% / 
  4. devtmpfs              devtmpfs    500772       0   500772    0% /dev 
  5. tmpfs                 tmpfs       507508       0   507508    0% /dev/shm 
  6. tmpfs                 tmpfs       507508    2604   504904    1% /run 
  7. tmpfs                 tmpfs       507508       0   507508    0% /sys/fs/cgroup 
  8. /dev/sda1             xfs         494940   95444   399496   20% /boot 

發(fā)現(xiàn)rhel7的開發(fā)軟件版本不低。

python 是2.7.5的了,和ubuntu一樣。  java默認(rèn)也給你裝上了。perl在centos6應(yīng)該是5.10的 ,現(xiàn)在更新到了5.16.3 。 至于為什么更新到perl6,估計和python3一樣吧。

  1. [root@localhost ~]#  
  2. [root@localhost ~]#  
  3. [root@localhost ~]# python -V 
  4. Python 2.7.5 
  5. [root@localhost ~]# java -version 
  6. java version "1.7.0_45" 
  7. OpenJDK Runtime Environment (rhel-2.4.3.4.el7-x86_64 u45-b15) 
  8. OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode) 
  9. [root@localhost ~]#  
  10. [root@localhost ~]#  
  11. [root@localhost ~]# perl -v       
  12.   
  13. This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi 
  14. (with 24 registered patches, see perl -V for more detail) 

想安裝pip但是iso沒有python-pip這個包。rhel7的官方源又打不開,郁悶。本來打算用epel6試試,用不了,到epel官網(wǎng)一瞅。epel居然已經(jīng)有對于rhel7的源了。

wKioL1Oc_I-DNIvwAAJX0WW4Glk978.jpg

簡單測試下rhel7的openlmi,什么是openlmi,我看了下一些文檔,他是一個類似func、但又不屬于puppet這類的集群接口工具。

安裝    yum install openlmi

安裝    yum -y install openlmi-scripts*

  1. scp root@10.10.10.71:/etc/Pegasus/client.pem /etc/pki/ca-trust/source/anchors/managed-machine-cert.pem  
  2. [root@localhost ~]# lmi -h 10.10.10.71 
  3. lmi> hwinfo 
  4. username: pegasus 
  5. password:  
  6. error   : Failed to make a connection to "10.10.10.71": (0, 'Socket error: [Errno 113] No route to host') 
  7. error   : No successful connection made. 
  8. lmi>  
  9. lmi>  
  10. lmi> 

原因不詳,我看了下官網(wǎng)對于openlmi的一些介紹,使用方面也是相當(dāng)?shù)暮喚殹?/p>

  1. lmi -h ${hostname} 
  2. lmi> help 
  3. ... 
  4. lmi> sw search django 
  5. ... 
  6. lmi> sw install python-django 
  7. ... 
  8. lmi> exit 

rhel7 用systemd替換了咱們熟悉的sysv ,說是這東西很強大,說實話,資料還是少,這里就簡單講解下systemd的用法。

  1. # CentOS 6.4 
  2. service httpd (start|stop) 
  3. # rhel7 
  4. systemctl (start|stop) httpd.service 
  5. # CentOS 6.4 
  6. chkconfig httpd (on|off) 
  7. # rhel7 
  8. systemctl (enable|disable) httpd.service 
  9. $ cat /usr/lib/systemd/system/httpd.service 
  10. [Unit] 
  11. Description=The Apache HTTP Server 
  12. After=network.target remote-fs.target nss-lookup.target 
  13. [Service] 
  14. Type=notify 
  15. EnvironmentFile=/etc/sysconfig/httpd 
  16. ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND 
  17. ExecReload=/usr/sbin/httpd $OPTIONS -k graceful 
  18. ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop 
  19. # We want systemd to give httpd some time to finish gracefully, but still want 
  20. # it to kill httpd after TimeoutStopSec if something went wrong during the 
  21. # graceful stop. Normally, Systemd sends SIGTERM signal right after the 
  22. # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give 
  23. # httpd time to finish. 
  24. KillSignal=SIGCONT 
  25. PrivateTmp=true 
  26. [Install] 
  27. WantedBy=multi-user.target 
 

會發(fā)現(xiàn)其實,用systemd參數(shù)更加的清晰,在sysv下,啟動start、關(guān)閉stop、重啟restart都是用$1來傳遞參數(shù),但是在systemctl下,更直白點。很是像supervisord這個daemon程序。

  1. [root@localhost ~]# chkconfig --list|grep samba       
  2.   
  3. 注意:該輸出結(jié)果只顯示 SysV 服務(wù),并不包含原生 systemd 服務(wù)。SysV 配置數(shù)據(jù)可能被原生 systemd 配置覆蓋。  
  4.       如果您想列出 systemd 服務(wù),請執(zhí)行 'systemctl list-unit-files'。 
  5.       欲查看對特定 target 啟用的服務(wù)請執(zhí)行 
  6.       'systemctl list-dependencies [target]'。 
  7.   
  8. [root@localhost ~]#  
  9. [root@localhost ~]#  
  10. [root@localhost ~]# systemctl list-dependencies samba  
  11. samba.service 
  12. [root@localhost ~]# 

數(shù)據(jù)庫方面真的是轉(zhuǎn)向到mariadb,當(dāng)我去安裝mysql的時候,他會直接去安裝mariadb ,看來mariadb大勢所趨呀。

  1. [root@localhost ~]# 原文:http://rfyiamcool.blog.51cto.com/1030776/1426550  
  2. [root@localhost ~]# yum -y install mysql 
  3. 已加載插件:langpacks, product-id, subscription-manager 
  4. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 
  5. file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml" 
  6. 正在嘗試其它鏡像。 
  7. 軟件包 1:mariadb-5.5.33a-3.el7.x86_64 已安裝并且是***版本 
  8. 無須任何處理 
  9. [root@localhost ~]#  
  10. [root@localhost ~]#  
  11. [root@localhost ~]# yum -y install mysql-server 
  12. 已加載插件:langpacks, product-id, subscription-manager 
  13. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 
  14. file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml" 
  15. 正在嘗試其它鏡像。 
  16. 正在解決依賴關(guān)系 
  17. --> 正在檢查事務(wù) 
  18. ---> 軟件包 mariadb-galera-server.x86_64.1.5.5.37-2.el7 將被 安裝 
  19. --> 正在處理依賴關(guān)系 mariadb-galera-common(x86-64) = 1:5.5.37-2.el7,它被軟件包 1:mariadb-galera-server-5.5.37-2.el7.x86_64 需要 
  20. --> 正在處理依賴關(guān)系 galera >= 25.3.3,它被軟件包 1:mariadb-galera-server-5.5.37-2.el7.x86_64 需要 
  21. --> 正在處理依賴關(guān)系 perl-DBI,它被軟件包 1:mariadb-galera-server-5.5.37-2.el7.x86_64 需要 
  22. --> 正在處理依賴關(guān)系 perl-DBD-MySQL,它被軟件包 1:mariadb-galera-server-5.5.37-2.el7.x86_64 需要 
  23. --> 正在處理依賴關(guān)系 perl(DBI),它被軟件包 1:mariadb-galera-server-5.5.37-2.el7.x86_64 需要 
  24. --> 正在檢查事務(wù) 
  25. ---> 軟件包 galera.x86_64.0.25.3.5-5.el7 將被 安裝 
  26. --> 正在處理依賴關(guān)系 nmap-ncat,它被軟件包 galera-25.3.5-5.el7.x86_64 需要 
  27. ---> 軟件包 mariadb-galera-common.x86_64.1.5.5.37-2.el7 將被 安裝 
  28. ---> 軟件包 perl-DBD-MySQL.x86_64.0.4.023-2.el7 將被 安裝 
  29. ---> 軟件包 perl-DBI.x86_64.0.1.627-1.el7 將被 安裝 
  30. --> 正在處理依賴關(guān)系 perl(RPC::PlClient) >= 0.2000,它被軟件包 perl-DBI-1.627-1.el7.x86_64 需要 
  31. --> 正在處理依賴關(guān)系 perl(RPC::PlServer) >= 0.2001,它被軟件包 perl-DBI-1.627-1.el7.x86_64 需要 
  32. --> 正在檢查事務(wù) 
  33. ---> 軟件包 nmap-ncat.x86_64.2.6.40-2.el7 將被 安裝 
  34. ---> 軟件包 perl-PlRPC.noarch.0.0.2020-12.el7 將被 安裝 
  35. --> 正在處理依賴關(guān)系 perl(Net::Daemon) >= 0.13,它被軟件包 perl-PlRPC-0.2020-12.el7.noarch 需要 
  36. --> 正在處理依賴關(guān)系 perl(Net::Daemon::Log),它被軟件包 perl-PlRPC-0.2020-12.el7.noarch 需要 
  37. --> 正在處理依賴關(guān)系 perl(Net::Daemon::Test),它被軟件包 perl-PlRPC-0.2020-12.el7.noarch 需要 
  38. --> 正在檢查事務(wù) 
  39. ---> 軟件包 perl-Net-Daemon.noarch.0.0.48-4.el7 將被 安裝 
  40. --> 解決依賴關(guān)系完成 
  41. 依賴關(guān)系解決 
  42. =================================================================================================================================== 
  43.  Package                                 架構(gòu)                     版本                               源                          大小 
  44. ==================================================================================================================================== 
  45. 正在安裝: 
  46.  mariadb-galera-server                   x86_64                   1:5.5.37-2.el7                     epel                        11 M 
  47. 為依賴而安裝: 
  48.  galera                                  x86_64                   25.3.5-5.el7                       epel                       1.1 M 
  49.  mariadb-galera-common                   x86_64                   1:5.5.37-2.el7                     epel                       212 k 
  50.  nmap-ncat                               x86_64                   2:6.40-2.el7                       rhel-iso                   198 k 
  51.  perl-DBD-MySQL                          x86_64                   4.023-2.el7                        rhel-iso                   140 k 
  52.  perl-DBI                                x86_64                   1.627-1.el7                        rhel-iso                   801 k 
  53.  perl-Net-Daemon                         noarch                   0.48-4.el7                         rhel-iso                    51 k 
  54.  perl-PlRPC                              noarch                   0.2020-12.el7 

期待centos7的到來,用rhel7,總是覺得不順手,心里別扭。 先這樣,有時間再搞。

責(zé)任編輯:黃丹 來源: 51TCO博客
相關(guān)推薦

2012-07-10 10:08:32

紅帽RHEL 7

2010-04-01 09:03:31

RHEL 5.5

2010-12-10 14:57:41

IE9CSS3

2009-11-26 14:16:06

Java 7

2009-09-22 15:24:20

Windows 7新功文件管理

2009-09-22 15:15:02

Windows 7新功文件搜索Windows Sea

2020-11-11 21:13:58

dotNET 5.0微軟

2009-02-18 21:16:16

2019-09-24 15:14:15

MIUI11

2009-07-07 08:46:11

微軟Windows 7新功能

2009-09-22 15:52:30

Windows 7新功磁盤加密Bitlocker

2009-03-24 17:43:08

shaderGPUSilverlight

2009-09-22 15:59:57

Windows 7新功Jumplist開始菜單

2009-09-22 16:03:55

Windows 7新功媒體中心

2009-09-22 15:47:11

2009-09-22 15:31:50

Windows 7新功家庭組網(wǎng)絡(luò)共享

2018-03-26 20:49:08

圖像分類

2014-06-30 10:57:02

IT技術(shù)周刊

2009-09-22 15:40:11

Windows 7新功畫圖板

2009-07-07 08:51:00

微軟Windows 7新功能
點贊
收藏

51CTO技術(shù)棧公眾號