Time of Update: 2017-01-13
在最新的版本5.6.3不僅修改了多個Bug,並且修改了fileinfo模組裡存在的安全性漏洞。PHP團隊推薦使用PHP5.6系列的使用者,升級到最新版本5.6.3。簡單介紹一下,如何在CentOS上安裝PHP5.6。配置yum源追加CentOS 6.5的epel及remi源。# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm# rpm -Uvh
Time of Update: 2017-01-13
Nginx是目前比較主流的WEB伺服器,也是比較主流而且強大的反向 ProxyWEB伺服器。自從搬家至騰訊雲端服務器上來後就一直使用Nginx作為本網站的WEB伺服器。下面就談談Nginx最佳化的一些東東:編譯安裝Nginx具體過程這裡就不說了哈,下面是我的Nginx安裝目錄tree:[root@VM_40_253_centos nginx]# tree ././├── client_body_temp├── conf│ ├──
Time of Update: 2017-01-13
記錄幾個常用的CentOS 7下的yum源,包括PHP7,MariaDB,Redis,Nginx等,以及阿里雲源,方便虛擬機器或雲主機上安裝這些軟體。1.PHP7 remi源使用remi源:$ sudo rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi $ sudo rpm -ivh
Time of Update: 2017-01-13
最近線上要使用git進行代碼發布和版本管理了,之前搞過,一直沒有做記錄。從今兒起開始記錄這塊。linux上(當前文章使用的是centos,ubuntu採用apt-get這裡不細說)安裝git有兩個辦法:yum安裝和source編譯,不建議yum。 yum都是老版本的,建議去github上下載源碼編譯安裝。這裡記錄下步驟:1,安裝依賴包。源碼編譯之前,先安裝一些依賴:yum install perl cpio curl curl-devel zlib-devel
Time of Update: 2017-01-18
[root@localhost yum.repos.d]# cat CentOS-Base.repo # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
Time of Update: 2017-01-18
centos i386 5.1Actual Country - http://mirror.centos.net.cn/5.1/isos/i386/ http://centos.candishosting.com.cn/5.1/isos/i386/ http://mirror.be10.com/centos/5.1/isos/i386/ http://ftp.hostrino.com/pub/centos/5.1/isos/i386/
Time of Update: 2017-01-18
1.如果你有安裝CentOS / RHEL最小伺服器安裝,您可能有很多麻煩沒有安裝包2.有一種方法來安裝所有的包,需要一個基本的伺服器,使用yum groupinstall命令3.從最小的安裝基本升級你的伺服器# yum groupinstall "Base"4.升級你的系統Web伺服器# yum groupinstall "Web Server"5.升級你的系統為MySQL資料庫伺服器# yum groupinstall "MySQL Database
Time of Update: 2017-01-18
本文執行個體講述了CentOS環境下單獨安裝apachebench的方法。分享給大家供大家參考,具體如下:這兩天在測試php效能最佳化方法。為了做壓力測試可觀察效果,就選擇了ApacheBench來作為壓力測試工具。其實就是大家常說的ab。但是這個工具是安裝apache web server的時候內建的,現在我伺服器上都是跑nginx。也不想為了用這個工具就再裝個apache。所以在用下面方法單獨安裝ab工具,這裡記錄下步驟。首先安裝ab運行需要的軟體包apr-utilyum install
Time of Update: 2017-01-18
本文執行個體講述了CentOS防火牆用法。分享給大家供大家參考,具體如下:關閉:/etc/init.d/iptables stop開啟:/etc/init.d/iptables start重啟:/etc/init.d/iptables restart查看:/etc/init.d/iptables status儲存:/etc/init.d/iptables save開啟8080連接埠:/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT刪除 -
Time of Update: 2017-01-18
本文執行個體講述了Centos中VNC遠端桌面程式的安裝與使用方法。分享給大家供大家參考,具體如下:這裡以centos 6.5為例安裝GNOME案頭環境yum groupinstall "X Window System" "Desktop"CentOS安裝Xfce案頭環境,可選yum groupinstall Xfce安裝tigervncyum install tigervnc-server tigervnc設定遠程登陸到gnome案頭的配置,再最後面加入如下兩行:vim
Time of Update: 2017-01-18
本文執行個體講述了CentOS簡單操作命令及node.js的安裝方法。分享給大家供大家參考,具體如下:查看centos核心的版本:uname -auname -r查看linux版本:cat /etc/issue查看系統是64位還是32位:getconf LONG_BIT安裝node.js因為node.js需要Python2.6以上Note: Python 2.6 or 2.7 is required to build from source tarballs.查看Python版本python -
Time of Update: 2017-01-18
先安裝MYSQL 伺服器 解壓MySQL,把所有檔案複製到/usr/local/mysql [root@Bleach usr]# groupadd mysql [root@Bleach usr]# useradd -g mysql mysql [root@Bleach mysql]# cd /usr/local/mysql
Time of Update: 2017-01-18
本機環境:伺服器是阿里雲ECS;使用的鏡像是:公用鏡像 CENTOS 7.2 一.nginx安裝1.下載對應當前系統版本的nginx包(package) wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.建立nginx的yum倉庫(預設yum是沒有nginx的) rpm
Time of Update: 2017-01-18
在CentOS 6.5 上運行Elasticsearch 2.3,異常如下:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root. at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93) at
Time of Update: 2017-01-18
CentOS下設定預設JDK最近在弄Linux,用yum源安裝opnjdk-devel版本後,用命令ll /etc/alternatives/Java查看,發現指向的是jre目錄,而不是jdk,在此設定指向jdk目錄。 CentOS下設定預設JDK執行命令:[root@exkPicture ~]# alternatives –install /usr/bin/Java java /usr/java/jdk1.7.0/bin/java 2注意:
Time of Update: 2017-01-16
標籤:mysql5.6首先安裝依賴包,避免在安裝過程中出現問題[[email protected] liuzhen]# yum -y install gcc gcc-c++[[email protected] liuzhen]# yum -y install cmake[[email protected] liuzhen]# yum&nb
Time of Update: 2017-01-15
標籤:命令 設定檔 不能 pts sysconf toc cal 顯示 隊列 1.配置DNSvim /etc/resolv.confnameserver
Time of Update: 2017-01-13
標籤:parent 安裝 key 需要 預設 etc class 20px org 升級核心需要使用 elrepo 的yum 源首先我們匯入 elrepo 的key rpm
Time of Update: 2017-01-14
標籤:centos banner 一、banner資訊相關檔案/etc/issue : 此檔案資訊是用來本地登陸時提示資訊儲存在此文檔,通過修改這個文檔內容可以修改本 地登陸時提示資訊。修改及生效。/etc/issue.net :
Time of Update: 2017-01-14
標籤:device detail add csdn uri gateway start dev box http://blog.csdn.net/johnnycode/article/detai