Time of Update: 2017-01-13
查看是否開戶IPV6方法1、查看系統是否開啟ipv6a)通過網卡屬性查看命令:ifconfig注釋:有 “inet6 addr:。。。。。。。“ 的表示開啟了ipv6功能b)通過核心模組載入資訊查看命令:lsmod | grep ipv6關閉IPV6命令新增檔案 /etc/modprobe.d/ipv6-off.conf 內容: 代碼如下複製代碼 alias net-pf-10 off alias ipv6 off 編輯
Time of Update: 2017-01-13
I. 安裝cd path-to-your-projectcurl -sS https://getcomposer.org/installer | php# Composer successfully installed to: /tmp/composer.phar# Use it: php composer.phar如果在此提示,那是因為php沒有在系統的環境變數$PATH中。command not found: php解決方案:為當前php的路徑建立一個軟串連ln -s /usr/local/
Time of Update: 2017-01-13
環境:系統版本:CentOS 6.5 x86_64PHP版本:php
Time of Update: 2017-01-13
實驗用三台Vmware下虛擬centos5.5伺服器,一台作為負載調度器(Lvs-server),兩台真實web伺服器(web1,web2).一、Lvs-nat實驗:配置IP:1.window7下與虛擬機器相連的網卡配置成8.8.8.1,不虛配置網關。2.Lvs-server需要配置兩塊網卡,一塊(eth0)類比與外網串連(本實驗下與Windows相連),一塊(eth1)與內部真實伺服器通訊。eth0:8.8.8.8,eth1:192.168.10.13.web1:eth0:192.168.10
Time of Update: 2017-01-13
CentOS的鏡像自己去官網下載https://www.centos.org/1、先使用UltraISO燒錄鏡像至隨身碟內 ultraiso開啟centos鏡像,啟動->寫入硬碟鏡像->格式化(把u盤格成fat32)->寫入2、u盤安裝CentOS
Time of Update: 2016-09-22
標籤:自己捯飭的linux系統(CentOS)安裝了jdk後,只能識別java命令而不識別javac。根據網上的教程設定環境變數後還是不行。後來看了下/usr/java/jdk**目錄下面根本沒有javac這個檔案。。。原來是安裝的openjdk版本的jdk。於是刪除原來的jdk,# yum erase java-1.*。下載Oracle的JDKrpm包,rpm -ivh
Time of Update: 2016-10-29
標籤:功能 nal 切換 src 命令 blog 安裝 命令列 設定 摘要Terminator是一款跨平台的終端工具,使用的是 GPL 許可證,提供了很多進階的功能。它沒有 Guake 和
Time of Update: 2016-09-14
標籤:在做項目時由於區域網路採用自動擷取IP的方式,導到每次伺服器重啟主機IP都會變化。為瞭解決這個問題,需要設定靜態IP。1.修改網卡配置 編輯:vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0 #描述網卡對應的裝置別名,例如ifcfg-eth0的檔案中它為eth0 BOOTPROTO=static #設定網卡獲得ip地址的方式,可能的選項為static,dhcp或bootp,分別對應靜態指定的
Time of Update: 2016-08-07
標籤:步驟:wget http://nginx.org/download/nginx-1.10.1.tar.gztar -xvf nginx-1.10.1.tar.gzcd nginx-1.10.1./configruemakemake install在configure中可能遇到的問題:./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module
Time of Update: 2016-07-12
標籤:vim /etc/ssh/sshd_config, 下面三行去掉注釋符號#RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keysmkdir -p ~/.sshchmod 700 ~/.ssh 產生公開金鑰和私密金鑰[[email protected] .ssh]# cd ~/.ssh[[email protected] .ssh]#
Time of Update: 2016-07-11
標籤:[[email protected] Desktop]# vi /boot/grub/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and
Time of Update: 2016-07-08
標籤:這看不出開機啟動卡在哪裡,只好重啟按住"e"鍵,進入啟動菜單:然後移動到第二項kernel...接著按e進入編輯去掉rhgb quiet字樣 按斷行符號儲存回到選擇項按b啟動它就能看到啟動過程了f5鍵進度條/命令列介面方式切換#關鍵能過啟動後台杳找原因(壓F5杳看啟動過程)在啟動過程中就可以杳找原因 [[email protected]_Master ~]# chkconfig kdump off 如還是不能進入[[email protected]_
Time of Update: 2016-06-17
標籤:kickstart使用一台CentOS 6/7做DHCP和HTTP伺服器安裝dnsmasq, httpd,啟用DHCP和HTTP服務yum -y install httpd dnsmasqvi /etc/dnsmasq.conf145行處:dhcp-range=x.x.x.x x.x.x.x, 12h啟動httpd和dnsmasq服務 (暫時禁用iptables)ss -lntu 查看連接埠httpd: tcp 80dnsmasq: tcp/udp 53, udp
Time of Update: 2016-05-14
標籤:附:CentOS 6.432位:http://mirror.centos.org/centos/6.4/isos/i386/CentOS-6.4-i386-bin-DVD1to2.torrent64位:http://mirror.centos.org/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-bin-DVD1to2.torrent說明:1、CentOS 6.4系統鏡像有兩個,安裝系統只用到第一個鏡像即CentOS-6.4-i386-bin-DVD1.
Time of Update: 2016-05-13
標籤:安裝系統,配置環境第一步:進入系統用工具putty進入centos系統,輸入帳號密碼。第二步:遠程終端連接埠screen -S lnmp如果提示screen: command not found,需要安裝screenyum install screen第三步:安裝LNMP環境安裝過程中可以選擇相應的設定,預設也可以! 1.2版本wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz && tar zxf lnmp1.2-
Time of Update: 2016-05-04
標籤: 本文環境如下: 作業系統:CentOS 6 32位 Hive版本:2.0.0 JDK版本:1.8.0_77 32位 Hadoop版本:2.6.41. 所需要的環境Hive 2.0需要以下運行環境: Java 1.7以上(強烈建議使用Java 1.8) Hadoop 2.X2. 下載、解壓Hive安裝包Hive官網地址: http://hive.apache.org/ 例如:wget "http://mirrors.cnnic.cn/apache/hive/hive-2.
Time of Update: 2016-04-18
標籤:CentOS 7.0 關閉firewalld防火牆指令 及更換Iptables防火牆時間:2014-10-13 19:03:48 哎丫丫 來源:哎丫丫數位網 查看:11761 評論:2 service firewalld stop 1. Disable Firewalld
Time of Update: 2016-04-05
標籤:SSL認證是數位憑證的一種,類似於駕駛證、護照和營業執照的電子副本。因為配置在伺服器上,也稱為SSL伺服器憑證。SSL 憑證就是遵守 SSL協議,由受信任的數位憑證頒發機構CA(如GlobalSign,wosign),在驗證伺服器身份後頒發,具有伺服器身分識別驗證和資料轉送加密功能。採用1024位RSA非對稱式加密演算法進行加密。 1.查看是否安裝httpd和SSL(如果有就可以進行下一步) [root@localhost ~]# rpm -qa |
Time of Update: 2016-04-05
標籤:ossecossec批量部署中遇到了很多問題,說下其中的兩個。1、key_gen.py該指令碼一次最多產生1000個keys,超過1000台agent,需多產生幾次,只要ip對應正確的key即可。agent的名字最大支援32個字元,超過32個字元就會報錯。該指令碼可以添加、移除、提取、匯入agent/root/ossec-hids-2.8.3/contrib/ossec-batch-manager.plUsage: /root/ossec-hids-2.8.3/contrib/ossec-
Time of Update: 2016-06-17
解決CentOS 7出現Unit iptables.service failed to load點我進入原文地址解決 RHEL 7/ CentOS 7/Fedora 出現Unit iptables.service failed to load一直用CentOS 6 習慣了,一下沒適應過來。防火牆配置後執行service iptables save 出現"Failed to restart iptables.service: Unit iptables.service failed