日期:2014-05-16 浏览次数:20914 次
echo "deb http://download.softagency.net/debian/dotdeb/ stable all" >> /etc/apt/sources.list
echo "deb-src http://download.softagency.net/debian/dotdeb/ stable all" >> /etc/apt/sources.list
wget http://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg
2.辅助软件的安装
[apt-setup #重新设置APT源文件]
apt-get upgrade #系统升级 apt-get update #更新系统 apt-get install vim apt-get install libgd2 libgd2-dev libfreetype6-dev libgd-tools apt-get install zip unzip apt-get install expat apt-get install libxml2 libxml2-dev apt-get install libtemplate-perl apt-get install libxml-parser-perl apt-get install modconf #硬件管理模块工具 apt-get install rcconf #软件管理工具 apt-get install deborphan #显示未关联和使用的软件包 apt-get install locales #安装最新的locales软件包] apt-get install make
apt-get install apache2 apt-get install apache2-doc
apt-get install ssl-cert
dpkg -S make-ssl-cert将会出现如下信息:
ssl-cert: /usr/sbin/make-ssl-cert ssl-cert: /usr/share/man/man8/make-ssl-cert.8.gz
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem7、修改配置文件
vim /etc/apache2/sites-available/default-ssl
SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLCertificateKeyFile /etc/apache2/ssl/ssl-cert-snakeoil.key #(将/etc/apache2/ssl目录下的9f129ada修改为名称ssl-cert-snakeoil.key,也可不修改,配置文件修改亦可)
同时并将原来的注释掉
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem #SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
原来的ssl文件和sslkey:
新的ssl文件和sslkey:
a2ensite default-ssl
/etc/init.d/apache2 restart
apt-get install libapache2-mod-php5
<IfModule dir_module> DirectoryIndex index.html index.php index.htm </IfModule> AddType application/x-httpd-php .php AddType application/x-httpd-php .html AddType application/x-httpd-php .php3 AddType application/x-httpd-php .htm AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php5
cd /var/www vi index.php
<?php phpinfo(); ?>
13.安装mongodb
不再细说
14. 安装rockmongo
a.进入 cd /var/www目录
cd /var/wwwb.下载rockmongo
wget http://rock-php.googlecode.com/files/rockmongo-v1.0.11.zipc.解压rockmongo