- wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
- wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
- rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
- yum --enablerepo=remi update -y
- # update php5
- yum --enablerepo=remi,remi-php55 update -y
- yum clean all
- yum remove mysql* php* mysql-libs-5.1.73-5.el6_6.x86_64
- yum remove php*
- yum --enablerepo=remi install mysql mysql-server mysql-connector-odbc mysql-devel libdbi-dbd-mysql
- yum --enablerepo=remi install php php-fpm php-gd php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator php-bcmath php-sqlite php-xnmp php-ldap php-pear php-devel
- yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
- vim /etc/php.ini
- #修改php.ini中的屬性值
- date.timezone = "Asia/Taipei"
- short_open_tag = on
- # Mysql 5.5 啟動與設定
- vim /etc/my.cnf
- #設定MySQL編碼
- [mysqld]
- .....
- character-set-server=utf8
- collation-server=utf8_general_ci
- #編輯完後啟動Mysqld
- service mysqld start
- mysqladmin -u root password 'PASSWORDS'
- mysqladmin --user=root --password reload
- chkconfig --level 2345 mysqld on
- service httpd restart
2017年12月26日 星期二
CentOS 6.x安裝PHP 5.5 與MySQL 5.5
Related Posts:
Linux nohup with out nohup.outThe command is below: nohup some_command > /dev/null 2>&1& for example: nohup /jboss-eap-6.0/bin/standalone.sh -Djboss.server.base.dir=/jboss-eap-6.0/test -Djboss.server.log.dir=d:/webaplog/test > /dev/null … Read More
CentOS7 安裝防毒軟體 ClamAV 出處:https://blog.xuite.net/tolarku/blog/543961253-CentOS7+%E5%AE%89%E8%A3%9D%E9%98%B2%E6%AF%92%E8%BB%9F%E9%AB%94+ClamAV雖然我感覺不出來在 Linux 一般系統裡安裝防毒軟體的作用,但在某些應用有可能被外部使用者更改檔案,且資安要求需要安裝所以就會在 CentOS 裡安裝 ClamAV ,之前寫過一篇「Linux 系統安… Read More
MySQL指定使用utf8編碼匯入資料 在mysql匯入SQL檔案時,如果遇到亂碼問題,可透過指定編碼的方式,將資料正確匯入。 mysql -u root -p --default-character-set=utf8 example < example.sql… Read More
MySql備份Trigger與StoredProcedure預設的mysqldump備份出來的sql檔案,是不包含StoredProcedure,但是包含Trigger指令,因此我們如過發現資料庫中有StoredProcedure的話,需要透過下方的指令,將StoredProcedure備份出來。mysqldump -h 127.0.0.1 -u root -p -n -d -t --routines --triggers example > example.sql … Read More
MySQL匯出Binary檔案資料當使用mysqldump匯出資料庫檔案時,若有些欄位是直接將檔案儲存進去,在匯入資料庫時會導致失敗,因此需要透過以下指令將資料庫匯出後,才能在其他台mysql主機上匯入。 1. 使用--hex-blob匯出資料庫檔案mysqldump -u root -p --hex-blob example > example.sql 2. 使用一般方式匯入資料庫檔案mysql -u root -p … Read More
0 意見:
張貼留言