1.匯入公鑰
[root@dns]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2.開始安裝ELRepo
RHEL-5, SL-5 or CentOS-5版本執行
1.匯入公鑰
[root@dns]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2.開始安裝ELRepo
RHEL-5, SL-5 or CentOS-5版本執行
在/var/log/maillog中發現下列錯誤訊息:
Nov 27 08:29:05 dns dccproc[2665]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
執行dcc相關指令進行除錯
執行後產生一堆undefined name or wrong IP version錯誤訊息
1.cd /etc/yum.repos.d
2.wget -q http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo
3.yum install openwebmail
4.執行/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
出現訊息
一、安裝
yum install -y php php-suhosin php-gd php-pdo php-bcmath php-cli php-comon php-dba php-devel php-Monolog php-mbstring php-imap php-mysql php-process php-snmp php-xml php-mcrypt php-tidy php-pear php-pecl-apc php-pecl-memcache php-pecl-memcached phpMyAdmin php-intl
常見php套件
套件名稱 | 套件說明 |
php-5.3.3-23.el6_4.x86_64 | |
php-gd.x86_64 | A module for PHP applications for using the gd graphics library |
php-suhosin.x86_64 | Suhosin is an advanced protection system for PHP installations |
php-pdo.x86_64 | A database access abstraction module for PHP applications |
php-bcmath.x86_64 | A module for PHP applications for using the bcmath library |
php-cli.x86_64 | Command-line interface for PHP |
php-common.x86_64 | Common files for PHP |
php-dba.x86_64 | A database abstraction layer module for PHP applications |
php-devel.x86_64 | Files needed for building PHP extensions |
php-Assetic.noarch | Asset Management for PHP |
php-Monolog.noarch | Sends your logs to files, sockets, inboxes, databases and various web services |
php-email-address-validation.noarch | A PHP class for validating email addresses |
php-embedded.x86_64 | PHP library for embedding in applications |
php-enchant.x86_64 | Human Language and Character Encoding Support |
php-fpm.x86_64 | PHP FastCGI Process Manager |
php-imap.x86_64 | A module for PHP applications that use IMAP |
php-intl.x86_64 | Internationalization extension for PHP applications |
php-mbstring.x86_64 | A module for PHP applications which need multi-byte string handling |
php-mysql.x86_64 | A module for PHP applications that use MySQL databases |
php-ldap.x86_64 | A module for PHP applications that use LDAP |
php-process.x86_64 | Modules for PHP script using system process interfaces |
php-pspell.x86_64 | A module for PHP applications for using pspell interfaces |
php-recode.x86_64 | A module for PHP applications for using the recode library |
php-redland.x86_64 | HP modules for the Redland RDF library |
php-snmp.x86_64 | A module for PHP applications that query SNMP-managed devices |
php-tidy.x86_64 | Standard PHP module provides tidy library support |
php-xml.x86_64 | A module for PHP applications which use XML |
php-pear.noarch | PHP Extension and Application Repository framework |
php-mcrypt.x86_64 | Standard PHP module provides mcrypt library support |
php-mssql.x86_64 | Standard PHP module provides mssql support |
php-pecl-apc.x86_64 | APC caches and optimizes PHP intermediate code |
php-pecl-memcache.x86_64 | xtension to work with the Memcached caching daemon |
php-pecl-memcached.x86_64 | Extension to work with the Memcached caching daemon |
phpMyAdmin.noarch | Handle the administration of MySQL over the World Wide Web |
php-intl.x86_64 | Internationalization extension for PHP applications |
一、安裝項目
mysql.x86_64 : MySQL client programs and shared libraries
mysql-server.x86_64 : The MySQL server and related files
mysql-devel.x86_64 : Files for development of MySQL applications
php-mysql.x86_64 : A module for PHP applications that use MySQL databases
fail2ban 使用IPtables防止惡意的破解密碼網路連線(brute-force attack)
1.安裝 yum install fail2ban
2.建立fail2ban記錄檔存放目錄
[root@dns ~]# mkdir /var/log/fail2ban
3. /etc/fail2ban/fail2ban.conf
執行下列指令即可
yum install p7zip p7zip-plugins rar unrar arj unarj lha bzip2 cabextract cpio file gzip nomarch pax zip unzip lzop zoo ripole freeze tnef ncompress arc lrzip unzix
1.可由下頁網址下載安裝檔
http://mirror01.idc.hinet.net/EPEL/6/i386/repoview/epel-release.html
2.執行指令安裝
rpm -Uhv http://mirror01.idc.hinet.net/EPEL/6/i386/epel-release-6-8.noarch.rpm
執行結果如下...
1.RPMforge
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
安裝完成會新增四個檔案
/etc/yum.repos.d/mirrors-rpmforge
/etc/yum.repos.d/mirrors-rpmforge-extras
一、 假設下列套件褲1.、2.皆有安裝
1.安裝EPEL Extra Packages for Enterprise Linux repository configuration
二、更新套件庫
yum -y update
以下資料節錄於 http://dev.mysql.com/doc/refman/5.7/en/reserved-words.html
Reserved Words in MySQL 5.7.3
ACCESSIBLE |
ADD |
ALL |
ALTER |
ANALYZE |
AND |
AS |
ASC |
ASENSITIVE |
BEFORE |
BETWEEN |
BIGINT |
BINARY |
BLOB |
BOTH |
BY |
CALL |
CASCADE |
CASE |
CHANGE |
CHAR |
CHARACTER |
CHECK |
COLLATE |
COLUMN |
CONDITION |
CONSTRAINT |
CONTINUE |
CONVERT |
CREATE |
CROSS |
CURRENT_DATE |
CURRENT_TIME |
CURRENT_TIMESTAMP |
CURRENT_USER |
CURSOR |
DATABASE |
DATABASES |
DAY_HOUR |
DAY_MICROSECOND |
DAY_MINUTE |
DAY_SECOND |
DEC |
DECIMAL |
DECLARE |
DEFAULT |
DELAYED |
DELETE |
DESC |
DESCRIBE |
DETERMINISTIC |
DISTINCT |
DISTINCTROW |
DIV |
DOUBLE |
DROP |
DUAL |
EACH |
ELSE |
ELSEIF |
ENCLOSED |
ESCAPED |
EXISTS |
EXIT |
EXPLAIN |
FALSE |
FETCH |
FLOAT |
FLOAT4 |
FLOAT8 |
FOR |
FORCE |
FOREIGN |
FROM |
FULLTEXT |
GET |
GRANT |
GROUP |
HAVING |
HIGH_PRIORITY |
HOUR_MICROSECOND |
HOUR_MINUTE |
HOUR_SECOND |
IF |
IGNORE |
IN |
INDEX |
INFILE |
INNER |
INOUT |
INSENSITIVE |
INSERT |
INT |
INT1 |
INT2 |
INT3 |
INT4 |
INT8 |
INTEGER |
INTERVAL |
INTO |
IO_AFTER_GTIDS |
IO_BEFORE_GTIDS |
IS |
ITERATE |
JOIN |
KEY |
KEYS |
KILL |
LEADING |
LEAVE |
LEFT |
LIKE |
LIMIT |
LINEAR |
LINES |
LOAD |
LOCALTIME |
LOCALTIMESTAMP |
LOCK |
LONG |
LONGBLOB |
LONGTEXT |
LOOP |
LOW_PRIORITY |
MASTER_BIND |
MASTER_SSL_VERIFY_SERVER_CERT |
MATCH |
MAXVALUE |
MEDIUMBLOB |
MEDIUMINT |
MEDIUMTEXT |
MIDDLEINT |
MINUTE_MICROSECOND |
MINUTE_SECOND |
MOD |
MODIFIES |
NATURAL |
NONBLOCKING |
NOT |
NO_WRITE_TO_BINLOG |
NULL |
NUMERIC |
ON |
OPTIMIZE |
OPTION |
OPTIONALLY |
OR |
ORDER |
OUT |
OUTER |
OUTFILE |
PARTITION |
PRECISION |
PRIMARY |
PROCEDURE |
PURGE |
RANGE |
READ |
READS |
READ_WRITE |
REAL |
REFERENCES |
REGEXP |
RELEASE |
RENAME |
REPEAT |
REPLACE |
REQUIRE |
RESIGNAL |
RESTRICT |
RETURN |
REVOKE |
RIGHT |
RLIKE |
SCHEMA |
SCHEMAS |
SECOND_MICROSECOND |
SELECT |
SENSITIVE |
SEPARATOR |
SET |
SHOW |
SIGNAL |
SMALLINT |
SPATIAL |
SPECIFIC |
SQL |
SQLEXCEPTION |
SQLSTATE |
SQLWARNING |
SQL_BIG_RESULT |
SQL_CALC_FOUND_ROWS |
SQL_SMALL_RESULT |
SSL |
STARTING |
STRAIGHT_JOIN |
TABLE |
TERMINATED |
THEN |
TINYBLOB |
TINYINT |
TINYTEXT |
TO |
TRAILING |
TRIGGER |
TRUE |
UNDO |
UNION |
UNIQUE |
UNLOCK |
UNSIGNED |
UPDATE |
USAGE |
USE |
USING |
UTC_DATE |
UTC_TIME |
UTC_TIMESTAMP |
VALUES |
VARBINARY |
VARCHAR |
VARCHARACTER |
VARYING |
WHEN |
WHERE |
WHILE |
WITH |
WRITE |
XOR |
YEAR_MONTH |
ZEROFILL |
若只有一張網路卡,則網路設定檔位於
/etc/sysconfig/netwotk-scripts/ifcfg-eth0
通常系統安裝完成預設為DHCP模式,以下為設定檔內容範例:
DEVICE="eth0"//網路卡代號
BOOTPROTO="dhcp" //若為固定IP則為BOOTPROTO="none"
內容傳遞網路(Content delivery network或Content distribution network,常簡寫成CDN)
以大型分散式系統提供使用者網路服務,並提供高可用性與高效能的
網路服務給終端使用者。
CDN服務主要使用了分散式儲存、負載平衡、資料快取、網路流量管理、網路請求重導向、資料內容管理...等技術。
啟動Tomcat時,若在視窗中出現,下列訊息時的解決方法......
[java] 資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
此問題原因是Tomcat中沒有安裝Tomcat Native元件,
其說明文件提供的用途說明如下:
使用管理者身分執行 yum install "@Chinese Support"
安裝完成後於 [系統]-->[偏好設定]--[輸入法]設定輸入法相關項目
安裝資下如下.............
[root@dns kirby]# yum install "@Chinese Support"
更改CentOS 6.4主機名稱步驟
假設此主機為mypractice.net下的一部電腦,需命名為dns,
那麼FQDN(長主機名稱)為dns.mypractice.net,
且有一個對外固定IP為60.250.oo.xx
則修改步驟如下