發表文章

目前顯示的是有「rhel」標籤的文章

PDSH(Parallel Distributed SHell) 同時對遠端多台電腦送指令的 shell 工具

圖片
PDSH(Parallel Distributed SHell) 同時對遠端多台電腦送指令的 shell 工具 Pdsh(Parallel Distributed Shell) 是個可以同時平行對遠端的 shell 送指令及接收回傳資料的工具,它目標是取代 IBM's DSH 在 clusters at LLNL. 當有很多台一樣的主機,需要管理的時候就顯的重要。 目前他的官方網站 https://code.google.com/p/pdsh/ 最後一次更新在 2013 年,網路上已經有人打包成為 RPM 檔案,直接使用打包好的就可以。 它同時提供有 pdcp (copy from local host to a group of remote hosts in parallel) dshbak (formatting and demultiplexing pdsh output) 這些輔助工具。 RHLE 7 or CENTOS 7 版本的 RPM 下載 RPM 下載: http://blackjack.grid.org.ua/pub/linux/rhel/7x/base/x86_64/ 安裝需要請下載這些檔案: [hadoop@hadoop dl]$ rpm -qa | grep pdsh pdsh-2.29-2.el7.centos.x86_64 pdsh-rcmd-exec-2.29-2.el7.centos.x86_64 pdsh-mod-dshgroup-2.29-2.el7.centos.x86_64 pdsh-rcmd-ssh-2.29-2.el7.centos.x86_64 pdsh-mod-machines-2.29-2.el7.centos.x86_64 pdsh-debuginfo-2.29-2.el7.centos.x86_64 然後使用 RPM 安裝,因為軟體相依性關係,請先依序安裝下面兩個程式再裝其他的程式 rpm -ivh pdsh-rcmd-exec-2.29-2.el7.centos.x86_64 rpm -ivh pdsh-2.29-2.el7.centos.x86_64 .... other # 使用前需要先設定好, ssh key 認證,你可以參考底下這篇文...

在 CENTOS 7 的版本可以使用 hostnamectl 來改變系統 hostname

圖片
在 CENTOS 7 的版本可以使用 hostnamectl 來改變系統 hostname --------------------------- #  hostnamectl 指令用法 [root@dc216979 ~]# hostnamectl --help hostnamectl [OPTIONS...] COMMAND ... Query or change system hostname.   -h --help              Show this help      --version           Show package version      --transient         Only set transient hostname      --static            Only set static hostname      --pretty            Only set pretty hostname   -P --privileged        Acquire privileges before execution      --no-ask-password   Do not prompt for password   -H --host=[USER@]HOST  Operate on remote host Commands:   status                 Show current hostname settings ...

RHEL 7 yum repository 安裝 Apache + PHP 網站服務

圖片
自從 RHEL 7 Release 之後,要測試及安裝軟體都變得很麻煩,剛剛就自己重製了一份 yum 的儲存庫來使用,至少在 CENTOS 7 正式版 出來前先這樣撐著用巴。 建立方式可以參考 之前的 RHEL5 的作法 ,到 7 版方式雷同。 請到你的 /etc/yum.repos.d/ 目錄下,建立一個 local.repo 檔案。 [root@localhost yum.repos.d]# pwd /etc/yum.repos.d  [root@localhost yum.repos.d]# nano local.repo [rhel7-server] name = rhel7 server DVD 64bit baseurl = http://mt.jangmt.com/rhel7/RHEL-7.0Server.x86_64/ enabled = 1 gpgcheck = 0  [rhel7-support] name = rhel7 support DVD 64bit baseurl = http://mt.jangmt.com/rhel7/Supp-7.0RHEL-7Server.x86_64/ enabled = 1 gpgcheck = 0 裝好後安裝個 apache + PHP 服務在 RHEL7 上面巴。 因為 CENTOS7 已經正式出現了,所以可以直接使用 CENTOS7 的 REPO 當作系統的軟體來源: 目前系統 CentOS 7 的主要 REPO 檔案如下: [root@mtchang yum.repos.d]# cat /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client.  You should use thi...

在 RHEL/CENTOS 6 Debian Linux 上使用 PostgreSQL資料庫

圖片
Contents 1 ABOUT 2 在RHEL/CENTOS 上使用 PostgreSQL資料庫 2.1 PostgreSQL 2.2 為何要用postgresql? 2.3 PostgreSQL 的安裝 2.3.1 postgresql 的套件安裝 2.3.2 在資料庫系統上,建立使用者與資料庫 2.4 更改 PostgreSQL 的登入認證模式 2.5 安裝 PostgreSQL 管理工具 2.6 建立使用者及匯入資料 2.6.1 建立使用者 2.6.2 建立資料庫 2.6.3 匯入資料 2.6.4 匯出資料 2.6.5 shell script 建立使用者資料 2.7 參考資料 3 debian 安裝 postgresql 資料庫 3.1 安裝 phpPgAdmin 管理介面 3.2 大量建立帳號及匯入資料 ABOUT 安裝 postgresql 在 debian linux or centos linux 在RHEL/CENTOS 上使用 PostgreSQL資料庫 PostgreSQL PostgreSQL是自由的關聯式資料庫伺服器(DBMS),授權模式採取 BSD 授權許可最大好處是可以用於商業營運或修改成為自己的產品一部分而無須支付任何費用也不必擔心需要將修改過後的原始碼公開等眾多GPL授權軟體需要面對的 問題。它具有商業資料庫絕大部分的功能,對於中小企業的應用十分的足夠。相較於 MySQL 這開放的資料庫系統,他有更完整的關聯式資料庫功能及優秀的穩定性。 為何要用postgresql? 為何要用轉用 postgresql? 我需要一個可以商業化的資料庫:PostgreSQL 採用授權較為寬鬆的 BSD 授權,對於商業公司而言不用擔心日後 PostgreSQL 的開發人員突然反悔改成其他授權模式的影響。 一個強大的資料庫引擎:交易、觸發、內存程序等完整的關聯式資料庫機制,提供開發人員在開發過程中更方便的操作。 一個取得容易,價格低廉的資料庫引擎:自由的BSD授權提供最便宜的成本。世界各地都有相關的 Mirror site。 商用資料庫知名產品經常的更新...