debian 装nginx php redis memcache nodejs mariadb 等

不要问这么多 just装就是了.反正也是给别人看的…(如果我说是我懒得想会不会觉得很low呢?)

先试试这个
apt-get install build-essential

缓存工具:
redis:
$ wget http://download.redis.io/releases/redis-3.2.1.tar.gz
$ tar xzf redis-3.2.1.tar.gz
$ cd redis-3.2.1
$ make
然后去utils 里面找 server_install.sh
have fun….

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory
解决办法
make MALLOC=libc

Redis need tcl 8.5 or newer
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
cd /usr/local/tcl8.6.1/unix/
sudo ./configure
sudo make
sudo make install

memcached
Debian/Ubuntu: apt-get install libevent-dev Redhat/Centos: yum install libevent-devel
wget http://memcached.org/latest
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
./configure && make && make test && sudo make install

数据库.
觉得麻烦请直接apt-get install mysql. 并没有什么区别.
mariaDB:

apt-get install software-properties-common
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository ‘deb [arch=amd64,i386] http://mirrors.hustunique.com/mariadb/repo/10.1/debian jessie main’

apt-get update
apt-get install mariadb-server
添加源
deb [arch=amd64,i386] http://mirrors.hustunique.com/mariadb/repo/10.1/debian jessie main
deb-src http://mirrors.hustunique.com/mariadb/repo/10.1/debian jessie main
deb [arch=amd64,i386] http://mirrors.neusoft.edu.cn/mariadb/repo/10.1/debian wheezy main
deb-src http://mirrors.neusoft.edu.cn/mariadb/repo/10.1/debian wheezy main

nginx:
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
rm nginx_signing.key

vi /etc/apt/sources.list.d/nginx.list
添加源
deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx

nodejs:
curl -sL https://deb.nodesource.com/setup_6.x | bash
apt-get install -y nodejs

PHP
这样你装出来就只有旧版本..要死了吧~哈哈哈哈
apt-get install php5-fpm php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-common php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-memcached

php7
添加源
deb http://packages.dotdeb.org jessie all

wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg

apt-get update
apt-get install php7.0
apt-get install php7.0-json php7.0-imap php7.0-redis php7.0-mysql php7.0-memcached php7.0-redis php7.0-gd php7.0-imagick php7.0-soap php7.0-zip php7.0-xml

vim简单用法. esc i :wq
ok 你可以滚了.

  1. 暂无评论

  1. 暂无 Trackback

return top