Time of Update: 2017-01-13
安裝JDK在Oracle Java SEDownload頁面下載JDK。(1) 勾選「Accept License Agreement」(2) 點擊「jdk-8u91-linux-x64.rpm」系統為64位時選擇x64,32位時選擇i586。(3) 把下載的檔案用FTP上傳到伺服器。(4) 安裝JDK# rpm -ivh ./jdk-8u91-linux-x64.rpm安裝Tomcat在Apache Tomcat – Welcome!的Downloads頁面下載Tomcat。#
Time of Update: 2017-01-13
查了一些資料,如果要安裝perf的話,都說執行 代碼如下複製代碼 apt-get perfapt-get linux-toolsyum install google-perftools google-perftools-devel之類的。不過在centos下確實沒有這些東西可用。yum源找不到,所以還是自己找源裝吧。在這裡找到一個rpm包的庫:
Time of Update: 2017-01-13
代碼[root@vpnserver ~]# ntpdate time.nist.gov[root@vpnserver ~]# mkdir /byrd/tools -p[root@vpnserver ~]# mkdir /byrd/service [root@vpnserver ~]# cd /byrd/tools/[root@vpnserver tools]# wget
Time of Update: 2017-01-13
Dockerfile包含建立鏡像所需要的全部指令。基於在Dockerfile中的指令,我們可以使用Docker build命令來建立鏡像。通過減少鏡像和容器的建立過程來簡化部署Dockerfile 基本的文法是使用#來注釋FROM 指令告訴 Docker 使用哪個鏡像作為基礎,這裡我從自己的私人鏡像庫擷取MAINTAINER:設定該鏡像的作者RUN開頭的指令會在建立中運行,比如安裝一個軟體包,在這裡使用 yum
Time of Update: 2017-01-13
yum安裝好rabbitmq-server後,啟動報錯[root@openstack ~]# systemctl start rabbitmq-server.serviceJob for rabbitmq-server.service failed. See ‘systemctl status rabbitmq-server.service’ and ‘journalctl -xn’ for details.[root@openstack ~]#
Time of Update: 2017-01-13
因為有些時候從外部下載過來的檔案是.TAR.BZ2格式的,所以在解壓的時候與我們常用的ZIP和TAR.GZ的方式不同,像我記憶力不好人還是喜歡直接記錄下來,以便下次需要的時候直接找解決方案或者複製使用。第一、安裝.tar.bz2環境apt-get install bzip2如果我們的系統是DEBIAN環境就用上面的命令安裝bzip2,如果是centos則使用yum.第二、解壓方法bunzip2 FileName.tar.bz2第三、解壓TAR檔案如果解壓出來還有tar壓縮包,那繼續解壓tar
Time of Update: 2017-01-13
系統:centos 5.9 需要的軟體包:vnstat-1.11.tar.gz vnstat_php_frontend-1.5.1.tar.gz1.下載vnstat 代碼如下複製代碼 wget
Time of Update: 2017-01-13
貌似這次 CentOS 沒有發布 Minimal 安裝版,下面的編譯安裝步驟在 LiveCD 安裝版(CentOS-7.0-1406-x86_64-livecd.iso)上完成。安裝需要的軟體包安裝完 CentOS 7.0 後第一件事就是啟動 SSH 以便能從另外一台機器訪問,新版本的 CentOS 引入了有爭議的 systemd 進程管理器替代了 Unix 傳統的 init 系統。開啟服務使用 systemctl 命令:# systemctl start sshd# systemctl
Time of Update: 2017-01-13
1、先安裝lnmp這裡就不講了2、安裝必要組件yum -y install mysql-devel libcurl-devel net-snmp-devel3、添加使用者groupadd zabbixuseradd zabbix -g zabbix4、建資料庫create database zabbix character set utf8;grant all privileges on zabbix.* to zabbix@localhost identified by
Time of Update: 2017-01-13
1、安裝NFS服務端yum install nfs-utils rpcbind2、配置vim /etc/exports/usr/local/collection 192.168.1.*(rw,sync,no_root_squash)#允許192.168.1.* IP段訪問#或者/usr/local/collection 192.168.1.2(rw,sync,no_root_squash) 192.168.1.3(rw,sync,no_root_squash) #允許2、3兩個ip訪問vim /
Time of Update: 2017-01-13
建立開機啟動coreseek服務,此處一定要加入–pidfile檔案,以免shell自啟動找不到進程pid。 代碼如下複製代碼 vi /etc/rc.local(或者 vi /etc/rc.d/rc.local)/usr/local/coreseek/bin/searchd –-c /usr/local/coreseek/etc/csft.conf --pidfile /usr/local/coreseek/var/log/searchd.
Time of Update: 2017-01-13
CentOS的yum源中沒有git,只能自己編譯安裝,現在記錄下編譯安裝的內容,留給自己備忘。確保已安裝了依賴的包yum install curlyum install curl-develyum install zlib-develyum install openssl-develyum install perlyum install cpioyum install expat-develyum install gettext-develyum install
Time of Update: 2017-01-13
最近購買了阿里雲的雲主機,自己在配置好php環境後在去配置ftp;大致過程為:首先安裝vsftp.1安裝vsftpdyum install vsftpd按Y斷行符號,系統自動安裝/etc/init.d/vsftpd start #啟動vsftpdservice vsftpd restart #重啟service vsftpd stop #停止chkconfig vsftpd on #設定開機時自動運行2、配置vsftp伺服器設定檔說明:/etc/vsftpd/vsftpd.conf
Time of Update: 2017-01-13
先說一下實現的原理,當然此文章主要講了我的實現,當然還有其他的實現方式,原理都是差不多的。首先,我們需要安裝kramdown解譯器,這個很好理解吧,和php一樣,他的特點標籤能夠實現渲染肯定需要解譯器來解析,這裡kramdown解譯器的官網為http://kramdown.gettalong.org/installation.html,這是安裝介面,根據自己的系統安裝即可,不過他需要安裝ruby依賴。然後我通過nginx的url轉寄,將.md的文檔轉寄給一個php檔案來處理,這個php檔案,就調
Time of Update: 2017-01-13
看到很多VPS使用者並不是用來搭建網站的,而是用來建立郵件伺服器使用發送郵件,所以老左也來學習這類功能的應用。學習和使用搭建郵件伺服器肯定需要先用到免費開源的iRedMail軟體。iRedMail能夠在Red Hat、CentOS、SDebian、 Ubuntu等環境系統中快速部署郵件伺服器的解決方案。在這篇文章中,老左分享的是自己在Centos 6 32位系統中成功搭建的過程。第一、更新系統安裝包 代碼如下複製代碼 yum update
Time of Update: 2017-01-13
在新的centos7裡,關於時間的指令除了保留了之前版本中常用到的date、hwclock等命令外,還增加了一個統一的命令timedatactl。下面結合其用法進行下小結。查看 timedatectl 指令用法協助 代碼如下複製代碼 [root@361way ~]# timedatectl --helptimedatectl [OPTIONS...] COMMAND ...Query or change system time and date settings.
Time of Update: 2017-01-13
1、在 /etc/yum.repos.d/ 下建立 MariaDB.repo,內容如下:[azureuser@mono etc]$ cd /etc/yum.repos.d[azureuser@mono yum.repos.d]$ vi MariaDB.repo# MariaDB 10.0 CentOS repository list – created 2013-08-23 13:08 UTC#
Time of Update: 2017-01-13
一、編譯安裝docker1、升級核心到4.3[root@Docaker-Node01 ~]# yum install -y make gcc gcc-c++ openssl openssl--devel ncurses ncurses-devel bc[root@Docaker-Node01 ~]# wget http://mirrors.dwhd.org/Kernel/v4.x/linux-4.3.tar.xz[root@Docaker-Node01 ~]# tar xf linux-4.3.
Time of Update: 2017-01-13
而 message 出現Nov 22 20:34:12 st kernel: e1000e 0000:07:00.0: eth0: Timesync Tx Control register not set as expected網卡資訊# ethtool -i eth0driver: e1000eversion: 2.3.2-kfirmware-version: 1.9-0bus-info: 0000:07:00.0supports-statistics: yessupports-test:
Time of Update: 2017-01-13
Starting sendmail:Starting