I. Ubuntu IP Configuration:
Open network configuration file
$ sudo vi /etc/network/interfaces
Find and remove dhcp entry:
#iface eth0 inet dhcp
I. Ubuntu IP Configuration:
Open network configuration file
$ sudo vi /etc/network/interfaces
Find and remove dhcp entry:
#iface eth0 inet dhcp
安装Ubuntu Server参考我以前的文档。
ORACLE 10g的安装主要参考了Ubuntu Wiki,我自己的一些记录如下:
1、基本要求:
我的VMWare下的Ubuntu Server 7.10,1G RAM,2G Swap,确认安装如下包:
# apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio libstdc++5
//注意libc6-dev
2、创建用户
安装Oracle需要在你机器上新建一个系统用户和三个组。
# addgroup oinstall
# addgroup dba
# addgroup nobody
# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
# passwd oracle
# usermod -g nobody nobody
3、创建目录并设置权限
# mkdir -p /opt/oracle
# mkdir /opt/oradata
# chown -R oracle:oinstall /opt/ora*
# chmod -R 775 /opt/ora*
cp mt-3.33.tar.gz /var/www/cgi-bin
tar zxvf mt-3.33.tar.gz
mv MT-3.3 mt
mv mt/mt-static ../mt-static
cp mt/mt-config.cig-original mt/mt-config.cgi
## Movable Type configuration file ##
######## REQUIRED SETTINGS #############
# The CGIPath is the URL to your Movable Type directory
CGIPath http://domain-name/cgi-bin/mt/
# The StaticWebPath is the URL to your mt-static directory
StaticWebPath http://domain-name/mt-static
#=========== DATABASE SETTINGS =============
##### MYSQL #####
ObjectDriver DBI::mysql
Database blod_db_name
DBUser blog_db_user
DBPassword blog_db_pwd
DBHost localhost
sudo apt-get install apache2
缺省的Apache2配置文件是/etc/apache2/apache2.conf
缺省的虚拟主机配置文件是/etc/apache2/sites-available/default
缺省的DocumentRoot是/var/www
缺省的CGI目录是/usr/lib/cgi-bin
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/duecare
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server mysql-client
sudo netstat -tap | grep mysql
sudo mysqladmin -u root password newrootsqlpassword
sudo mysqladmin -u root -h localhost password newrootsqlpassword
sudo /etc/init.d/mysql restart
sudo apt-get install php5
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install php5-gd
sudo apt-get install phpmyadmin
sudo /etc/init.d/apache2 restart
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
deb http://cn.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn edgy main restricted universe multiverse
sudo apt-get update
sudo apt-get dist-upgrade
从本地将新版本的MT tar文件上传至服务器的temp目录,远程ssh上去后:
tar zxvf MT.3.3.tar.gz
mv MT-3.3 mt
mv mt/mt-static mt-static
cd ..
cp temp/mt-static/* shencb.net/mt-static -R
cp temp/mt/* shencb.net/cgi-bin/mt -R
http://www.shencb.net/cgi-bin/mt-upgrade.cgi
then step by step.
All done.
注意升级之前备份。特别是mt-config.cgi