更新源
apt-get update
安装node.js
apt-get install nodejs apt-get install npm
安装apache
apt-get install apache2
启动apache出现如下错误:
ddr_info_get() failed for ALIapache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameapache2: apr_sockaddr_info_get() failed for ALIapache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
解决方法:
进入apache的安装目录:(视个人安装情况而不同)
cd /etc/apache2/
编辑httpd.conf文件,搜索”#ServerName”,添加:
#ServerName www.example.com:80 ServerName localhost:80
- 重新启动apache 即可。
Ubuntu下启动/重启/停止apache服务器
Start Apache 2 Server /启动apache服务
#/etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start
Restart Apache 2 Server /重启apache服务
#/etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart
Stop Apache 2 Server /停止apache服务
#/etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
ubuntu 12.04 安装 mariadb
- 首先从 MariaDB 下载页面 选择贴近你的 Ubuntu 版本的资料库镜像,然后下载页面会在底部显示镜像信息(如下所示),将这些信息添加到 /etc/apt/sources.list.d/mariadb.list。
#MariaDB 5.5 repository list - created 2014-06-19 12:56 UTC#http://mariadb.org/mariadb/repositories/ deb http://mirrors.hustunique.com/mariadb/repo/5.5/ubuntu precise main deb-src http://mirrors.hustunique.com/mariadb/repo/5.5/ubuntu precise main
- 接下来需要导入签名密钥:
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
- 更新
sudo apt-get update
- 安装
sudo apt-get install mariadb-server mariadb-client
这样 MariaDB 5.5 就已经安装成功,你就可以像使用 MySQL 那样对它进行配置和使用了。
参考链接:http://downloads.mariadb.org/mariadb/repositories/
其他:
maria版本 查询
mysql -e "SELECT VERSION();”
卸载mariadb:删除某个包的同时,删除依赖于它的包
sudo apt-get autoremove mariadb-server mariadb-client
暂无评论