Time of Update: 2018-07-28
CentOS 7 中的 yum 沒法直接使用 yum install nginx 這個指令去安裝nginx,因為nginx這個服務不是yum庫中內建的。圖1是官方提供的大致安裝步驟,圖2是官網提供的多個版本的nginx安裝包,下面是我給合自己的系統內容總結的安裝方法,供大家參考: 圖1 圖2 1、按圖1中的要求vi nginx.repo這個檔案,將圖中[nginx]欄位中的內容複寫進去,儲存退出。 [root@lnboxue ~]# vi
Time of Update: 2018-07-28
Centos7 安裝VNC步驟 一.安裝 1. 以root使用者運行以下命令來安裝vncserver; yum install tigervnc-server 2. 同樣運行以下命令來安裝vncviewer; yum install vnc 3. 停止並禁用防火牆; systemctl stop firewalld.service systemctl disable
Time of Update: 2018-07-28
centos 下 Qt Creator 的安裝使用 Qt 以其開源,免費,完全物件導向(很容易擴充),允許真正的組件編程以及可移植跨平台等諸多優勢得到越來越多的開發人員的青睞。Qt Creator 是 Nokia 官方推出的專門針對 Qt 開發的 IDE。本文詳細介紹了 Linux 下 Qt Creator 的安裝,並針對 Qt Creator 的使用舉了一個 Hello World 層級的例子,希望對第一次接觸 Qt Creator 的朋友可以起到拋磚引玉的作用。
Time of Update: 2018-07-28
安裝memcache到CentOS(另附yum法) 轉載一篇在CentOS上安裝memcache的方法。 所有操作都在SSH下,以根帳號登入。 我的版本為Centos Release 5.3 (Final) 使用這個命令可以知道你的Linux版本 cat /etc/redhat-release 首先要安裝libevent庫。 cd /usr/local/src curl -O
Time of Update: 2018-07-28
*filter :INPUT ACCEPT [25350:2120857] :FORWARD ACCEPT [1:20000] :OUTPUT ACCEPT [26183:2224589] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state
Time of Update: 2018-07-28
CentOS 6.5安裝jdk1.8 1、源碼包準備: 首先到官網下載jdk-8u66-linux-x64.tar.gz, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2、上傳 上傳到/data目錄。 3、解壓 tar zxvf jdk-8u66-linux-x64.tar.gz
Time of Update: 2018-07-28
最近和老師學習相關課程時需要用到bitcoin用戶端,同學推薦用的CentOS用戶端,確實許多東西不需要配,可是也遇到了許多奇葩的問題,比如這個錯誤: possibly undefined macro: PKG_CONFIG_LIBDIRIf this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf:
Time of Update: 2018-07-28
參考: https://wiki.archlinux.org/index.php/Wireless_network_configuration_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E6.89.8B.E5.8A.A8.E8.AE.BE.E7.BD.AE https://wiki.archlinux.org/index.php/WPA_supplicant_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) http:
Time of Update: 2018-07-28
最近的項目中要使用中介軟體,經過選型,確認部署rabbitmq. 伺服器的環境:centos 6.5 、PHP 5.6 使用者:root RabbitMQ是使用Erlang開發,所以安裝RabbitMQ前需要先安裝Erlang, 這是愛立信公司研發的一個軟體項目,下載Erlang的安裝檔案在http://erlang.org/download/ 網站上,選擇最新的版本,我選擇的是19.3版本。
Time of Update: 2018-07-28
192.168.55.115為主伺服器 192.168.55.185為從伺服器 先需要將發送到伺服器端的請求進行分流,具體要求如下 要求/index.php/*的請求訪問主伺服器 /api.php/1/files/*的請求訪問主伺服器 /api.php/1/files_put/*的請求訪問主伺服器 /api.php/1/thumbnails/*的請求訪問主伺服器 /statics/thumbnails/*的請求訪問主伺服器 其它的都訪問從伺服器
Time of Update: 2018-07-29
線上一台測試機,網路環境比較詭異,無法下載Python標準庫中的源碼包,也無法是pip等線上編譯安裝。 沒有辦法,只能從其它伺服器上下載源碼包,然後scp複製過去。下面是我記錄的安裝過程。 首先從官網下載好源碼包 參照參考文獻[2]中的安裝說明,需要事先安裝libcurl-dev庫,並確保curl-config在目前使用者的可尋找路徑中: yum -y install libcurl-dev 然後尋找curl-config的位置 locate curl-
Time of Update: 2018-07-29
http://blog.chinaunix.net/uid-14735472-id-4934982.html http://www.if-not-true-then-false.com/2012/install-skype-on-fedora-centos-red-hat-rhel-scientific-linux-sl/ This is guide, howto install Skype 4.3 on Fedora 21/20/19/18/17/16 on CentOS/Red
Time of Update: 2018-07-29
今天搭Hadoop完全分布式叢集的時候, 啟動Centos時,總是停在starting sendmail上很長時間,接下來的starting sm-client也是異常的慢。 後來查資料,才知道原來是和更改hostname有關。回想一下,自己曾經確實是改了hostname。但是只是修改了設定檔(/etc/sysconfig/network)。 網上有說“這是因為 sendmail 的 server name (預設為
Time of Update: 2018-07-29
------------------------------------------------------------------------------------------------ 出錯提示 There was a problem importing one of the Python modules required to run yum. The error leading to this
Time of Update: 2018-07-29
本人只做了兩個tomcat的叢集 一、首先安裝Apache作負載平衡。 二、安裝Apache TomcatConnector作請求分發。 三、安裝tomcat: 1、 下載Linux下tomcat安裝包: 2、 網上下載安裝包:點擊開啟連結 也可以去我上傳的資源下載,不過現在只能用積分了,本來不需要積分的。囧,地址:點擊開啟連結。 3、
Time of Update: 2018-07-29
CentOS 7 開放防火牆連接埠 命令 最近公司新的server要求用CentOS7, 發現以前CentOS 6 系列中的 iptables 相關命令不能用了,查了下,發現Centos 7使用firewalld代替了原來的iptables。 使用方法如下: >>> 關閉防火牆 systemctl stop firewalld.service &
Time of Update: 2018-07-29
CentOS-5的yum源無法使用問題 [root@ip-172-31-28-42 yum.repos.d]# yum search mysql Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
Time of Update: 2018-07-29
編譯CoreCLR需要Clang 3.5,而CentOS上安裝的是Clang 3.4.2(yum repos中最新版也是這個),只能自己手工編譯LLVM的原始碼進行安裝。 (註:CentOS的版本是6.6) 一、安裝libstdc++4.7 (註:如果是CentOS 7.0,不需要這步) wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-
Time of Update: 2018-07-29
Linux centos關機與重啟命令詳解與實戰 Linux centos重啟命令: 1、reboot 2、shutdown -r now 立刻重啟(root使用者使用) 3、shutdown -r 10 過10分鐘自動重啟(root使用者使用) 4、shutdown -r 20:35 在時間為20:35時候重啟(root使用者使用) 如果是通過shutdown命令設定重啟的話,可以用shutdown -c命令取消重啟
Time of Update: 2018-07-29
docker 提供了簡單的操作容器的命令。但是他操作容器的命令不屬於系統。 由於太簡單,必然有很多不足。例如 啟動順序、依賴性檢查、失敗服務恢複等,均需要一個成熟的系統服務管理軟體來完成。 本文使用redis作為例子: 第一步:下載鏡像 # docker pull docker.io/redis 第二步:啟動鏡像 # docker run -d --name redis_server -p 6379:6379 redis