Time of Update: 2018-12-06
系統:centos 6.2需要的軟體:epel-release-5-4.noarch.rpm(fedora源) 1.安裝前準備 wget http://download.slogra.com/epel-release-5-4.noarch.rpm rpm -ivh epel-release-5-4.noarch.rpm wget -P /etc/yum.repos.d/
Time of Update: 2018-12-06
常用命令service iptables [save|start|restart|stop]iptables -L -n簡單shell命令iptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPUT DROPiptables -A INPUT -p tcp --dport 22 -j ACCEPTiptables -A INPUT -p tcp -m multiport --destination-port 22,80,8081
Time of Update: 2018-12-06
最近,總算有閑心折騰下這個已經在我的pc上存在了三個月的centos5.6了,路漫漫其修遠兮,Linux之路拉開帷幕。用grub引導,c5.6開機,在連網那塊,每次都載入的很慢。開機後發現無法上網,用終端Ping網關,unreachable。於是慢慢懷疑當時在實驗室配置的network資訊還正確不。1、檢測終端輸入 # ifconfig,發現配置資訊相當混亂,ip沒設,gateway,bootmask等都沒設。2、配置(1)用命令直接配置,優點方便快捷,缺點,無法儲存,每次重啟都要重新設定。#
Time of Update: 2018-12-06
環境系統版本:cenos 6.2MySQL版本:mysql-5.5.11一、準備環境1.建立mysql安裝目錄及資料存放目錄# mkdir -p /usr/local/mysql //安裝mysql# mkdir -p /usr/local/mysql/data //存放資料庫2.建立myql使用者和使用者組# groupadd mysql# useradd -g mysql mysql3.賦予資料存放目錄許可權[# chown -R root:mysql .
Time of Update: 2018-12-06
一. 準備環境1.安裝gccyum install gcc gcc-c++2.安裝pcre為了確保能在 Nginx 中使用Regex進行更靈活的配置,安裝之前需要確定系統是否安裝有 PCRE(Perl Compatible Regular Expressions)包。下載pcre-8.20.tar.gz,地址是:http://sourceforge.net/projects/pcre/files/pcre/ ,上傳至/usr/local,安裝目錄:/usr/local/pcre# mkdir
Time of Update: 2018-12-06
錯誤碼:Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileTraceback (most recent call last):File “/usr/bin/yum”, line 29, in yummain.user_main(sys.argv[1:], exit_code=True)File “/usr/share/yum-cli/yummain.py”, line 309, in user_main
Time of Update: 2018-12-06
rpm -ivh MySQL-server-5.6.10-1.el6.i686.rpm #安裝MySQLrpm -ivh --test MySQL-server-5.6.10-1.el6.i686.rpm #檢查安裝MySQL解析:-i 等同於 --install,即安裝,文法結構為 rpm {-i | --install} [install-options] package_file; -v 顯示安裝資訊; -h
Time of Update: 2018-12-06
原創作品,允許轉載,轉載時請務必以超連結形式標明文章 原始出處 、作者資訊和本聲明。否則將追究法律責任。http://sdbaby.blog.51cto.com/149645/325242今天又想起在VMWare虛擬機器上玩玩LINUX(CentOS),好長時間沒有弄它了!但是ROOT使用者的密碼忘了,進不去了!汗。。。解決方案:一、重啟系統,GRUB: 在引導裝載程式菜單上,用上下方向鍵選擇你忘記密碼的那個系統鍵入“e”
Time of Update: 2018-12-06
之前配置phpmyadmin的時候,在瀏覽器上輸入http://192.168.8.250/phpmyadmin/也遇到了You don't have permission to access on this server的問題在網上搜了很多的資料,有的說是selinux的原因,把它關掉就可以了,後來,我重新安裝了phpmyadmin,發現有時候並不一定是selinux的原因;再後來,找到了這篇文章的描述:***********************分割線*******************
Time of Update: 2018-12-06
在使用CentOS做server的時候有時會碰到server拒絕client串連的情況,client會受到connection reset by peer等錯誤,究其原因應該是server預設的file descriptor為1024,此時已經超過了1024,為安全起見server拒絕服務所導致的。增加file descriptor的操作如下:一、臨時增加file descriptor ulimit -n 4096二、永久增加file descriptor 2.1 # vi
Time of Update: 2018-12-06
(1)[root@bogon test]# cd /etc/sysconfig/network-scripts/(2)[root@bogon network-scripts]# vi ifcfg-eth0 (3)# Intel Corporation 82566DM-2 Gigabit Network
Time of Update: 2018-12-06
CentOS 5 i386:wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpmwget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpmwget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-
Time of Update: 2018-12-06
在centos系統中使用yum命令確實是一件愜意無比的事情,可是在一些時候也會遇到各式各樣的問題。今天遇到的一個,就棘手無比yum install xxx.rpmwarning:Package xxx.rpm is not signedgoogle一下,解決方案都是1、修改yum.conf路徑:/etc/yum.conf找到 gpgcheck=1將其修改為0:gpgcheck=02、修改/etc/yum.repos.d /utterramblings.repo找到
Time of Update: 2018-12-06
用虛擬機器的最大好處就是可以將虛擬機器檔案複製到另外一台機器上,同事也可以迅速以一個虛擬機器為源複製出多台虛擬機器出來。今年在搭建一些叢集方案的時候我經常用這種方法,不過也遇到了一些問題。下面先列舉一個: 1. 複製後無法連網的問題。 複製完虛擬機器我們如果用ifconfig命令查看系統網路設定,會發現沒有網卡被啟用,一般顯示如: 但是如果我們用命令ifconfig
Time of Update: 2018-12-06
兩種方法,第二種方法經驗證更為簡單In this short post I will show you how you can quickly add a range of IPs on anyRedHat based system (Rhel, Centos, Fedora, etc). When you have to add many IPs to a system this can be quite handy and save a lot of time.Normally when
Time of Update: 2018-12-06
webmin是linux下強大的管理UI,是一般伺服器的標配。 下載安裝檔案 wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz先安裝sslyum install openssl 編輯防火牆設定檔,添加紅色部分vi
Time of Update: 2018-12-06
.編譯安裝gityum install git2.安裝gitosis$ yum install python python-setuptools $ git clone git://github.com/res0nat0r/gitosis.git $ cd gitosis $ python setup.py install 網址:https://github.com/res0nat0r/gitosis3.在開發機器上產生公用密鑰(用來初始化gitosis)$ ssh-keygen -t rsa
Time of Update: 2018-12-06
/etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/resolv.conf /etc/hosts1、CentOS 修改DNS修改對應網卡的DNS的設定檔 # vi /etc/resolv.conf 修改以下內容nameserver 8.8.8.8 #google網域名稱伺服器 nameserver 8.8.4.4 #google網域名稱伺服器
Time of Update: 2018-12-06
剛裝完系統,centos無法上網,ifconfig 發現沒有配置ip。 修改IP /etc/sysconfig/network-scripts/ifcfg-eth0,如果是多網卡,以此內推修改:ONBOOT=“no” 為 ONBOOT=“yes”//是否啟動應用 添加:IPADDR=192.168.1.100 //IP地址NETMASK=255.255.255.0//子網路遮罩GATEWAY=192.168.1.1 //網關 修改DNS /etc/resolv.conf
Time of Update: 2018-12-06
環境系統版本:cenos 6.2 32bitJDK版本:jdk-6u45-linux-i586.binJBOSS版本:jboss-4.2.2.GA.zipVMware版本:VMware 7.1.5 一.安裝JDK請參照JDK安裝文檔二.安裝JBOSS1..首先建立一個安裝資料夾,建立/usr/java,命令:mkdir /usr/java,上傳檔案jboss-4.2.2.GA.zip到此檔案夾中2.執行解壓命令,解壓:unzip jboss-4.2.2.GA.zip