一.安装SAMP
1.从http://cooltools.sunsource.net/coolstack 下载CSKamp和CSKruntime的安装程序。
在下载的页面上点击cool stack 1.2下载,这里有适用于不同平台的安装版本(SPARC, Intel x86/AMD64),它包括Apache 2.2.6, MySQL 5.0.45, PHP 5.2.4
要安装coolstack1.2的软件包之前,需要先安装CSKruntime。
例如:/downloads/CSKamp-sparc.pkg.bz2,
/downloads/ CSKruntime_1.2_sparc.pkg.bz2
2.解压及安装AMP
#cd /downloads
#bunzip2 CSKruntime_1.2_sparc.pkg.bz2
#pkgadd –d /downloads/CSKruntime_1.2_sparc.pkg
#bunzip2 CSKamp-sparc.pkg.bz2
#pkgadd –d /downloads/CSKamp-sparc.pkg (默认安装路径为 /opt/coolstack)
3.配置及启动AMP
AMP包括Apache 2.2.6, MySQL 5.0.45, PHP 5.2.4
(1)启动Apache
启动:#/opt/coolstack/apache2/bin/apachectl start
重启:#/opt/coolstack/apache2/bin/apachectl restart
停止:#/opt/coolstack/apache2/bin/apachectl stop
检查Apache是否已经启动:#ps –ef | grep httpd
(2)配置及启动MySQL
1)#groupadd mysql
2)#useradd –g mysql mysql
3)#chown -R mysql:mysql /opt/coolstack/mysql_32bit
4)#vi /etc/my.cnf
[mysqld]
basedir=/opt/coolstack/mysql_32bit
datadir=/opt/coolstack/mysql_32bit/data
5)#cd /opt/coolstack/mysql_32bit/bin
#./mysql_install_db
6)#chown –R mysql:mysql /opt/coolstack/mysql_32bit/data
7)#ls -l /opt/coolstack/mysql_32bit/data
drwx------ 5 mysql mysql 512 Jun 6 20:39 data
8) #/opt/coolstack/mysql_32bit/bin/mysqld_safe &
9)检查MySQL是否已经启动
#ps –ef | grep mysql
二.安装Mediawiki
1.下载Mediawiki (mediawiki-1.12.0.tar.gz)
http://www.mediawiki.org/wiki/Download_from_SVN
(假设把mediawiki-1.12.0.tar.gz放在/software下面)
2.把mediawiki-1.12.0.tar.gz复制到apache的安装路径下面(/opt/coolstack/apache2/htdocs)
# cd /software
#cp mediawiki-1.12.0.tar.gz /opt/coolstack/apache2/htdocs
#cd /coolstack/apache2/htdocs
#gunzip –dc mediawiki-1.12.0.tar.gz | tar –xvf –
#mv mediawiki-1.12.0 wiki
#chown –R webservd:webservd wiki
3.重启apache
#cd /opt/coolstack/apache2/bin
#./ apachectl stop
#./ apachectl start
4.启动mysql
#mysql
Welcome to the MySQL monitor. Commands end with ; or "g.
Your MySQL connection id is 4
Server version: 5.0.45-standard-log Source distribution
Type 'help;' or '"h' for help. Type '"c' to clear the buffer.
mysql>create database wikidb;
mysql> use mysql;
mysql> insert into user (Host,User,Password) values ('localhost','wikiuser',PASSWORD('wikiuser'));
mysql> use wikidb;
mysql> grant all on wikidb to wikiuser@localhost;
mysql>flush privileges;
5.修改php.ini
#mkdir /var/tmp/wiki
#chown –R webservd:webservd /var/tmp/wiki
# cd /opt/coolstack/php5/lib
#vi php.ini
session.save.path=”/var/tmp/wiki”
6.在浏览器中输入:http://localhost:80/wiki
开始mediawiki的安装过程
7.安装成功后
#cd /opt/coolstack/apache2/htdocs/wiki
# mv LocalSettings.php /opt/coolstack/apache2/htdocs/wiki
完成Mediawiki的安装
http://www.maoa.cn/jerry/html/2008/05/200805091910490498.htm
http://www.hao123.com/haoserver/htmtojs.htm
http://developers.sun.com.cn/blog/pengfei/entry/opensolaris_2008_05_%E4%B8%8B%E6%8C%82%E8%BD%BD_ntfs
柴油发电机
发电机
柴油机
柴油发电机
13636374743(上海)
13291526067(嘉兴)