2012年3月3日 星期六
2012年2月26日 星期日
Ubuntu 上安裝sun-java6-JDK
手動安裝JDK
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
手動安裝JRE
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
出處:http://tekibrain.blogspot.com/2011/05/ubuntu-1104-sun-java-6-jdk.html
2012年2月23日 星期四
某APP主機的架構及安裝紀錄
前端結構是 iphone app -> java -> mysql
維護介面是 php -> mysql
1.安裝TOMCAT元件
iphone是連 deploy 在 tomcat 上的 java 程式
war 是 java application 要發佈到 tomcat 中
2.備份目錄摘要
備份目錄 1: /var/lib/tomcat7/webapps/ 全部
備份目錄 2: /home/carnews 全部
備份目錄 3: /etc/httpd/conf
備份目錄 4: /etc/httpd/conf.d
備份目錄 5: /etc/httpd/modules
備份目錄 6: /etc/httpd/ 全部
3.DOMAIN 修改
一. /home/carnews/admin/system/application/config
二. /etc/apache2/conf.d
三.
2012年2月15日 星期三
安裝php5-gd的元件方式
sudo /etc/init.d/apache2 stop
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 start
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 start
2012年2月14日 星期二
2012年2月13日 星期一
安裝 Java6 JDK 於 Ubuntu 11.10
sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugi
安裝PDO FOR PHP在UBUNTU上
For some reason there aren’t any PDO packages for PHP 5 on Ubuntu 6.10. They’re pretty easy to install from PECL but you might need to install the dev version of your database client libraries. Below is what I had to type to install PDO with the MySQL driver.
% sudo apt-get install libmysqlclient15-dev % sudo pecl install pdo % sudo pecl install pdo_mysql
You then need add the following to the end of your php.ini file(s). Depending on which version of PHP you installed they’ll be /etc/php5/apache2/php.ini, /etc/php5/cgi/php.ini and /etc/php/cli/php.ini.
extension=pdo.so extension=pdo_mysql.so
訂閱:
文章 (Atom)