@xxliixin1993
2016-07-06T22:09:02.000000Z
字数 2511
阅读 1549
未分类
apt-get install build-essential
安装搜狗
sudo apt-get install fcitx libssh2-1
<div class="md-section-divider"></div>
php
useradd -r php
./configure --prefix=/usr/local/php --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --enable-mbstring --enable-fpm --with-freetype-dir --with-jpeg-dir --with-png-dir --with-libxml-dir=/usr --enable-xml --enable-sockets --with-mcrypt --with-bz2 --with-config-file-path=/etc/php/php.ini --with-config-file-scan-dir=/etc/php.d/ --with-fpm-user=php --with-fpm-group=php --with-pear --with-curl --with-pdo_sqlite
为php提供配置文件:
cp php.ini-production /etc/php.ini
配置php-fpm
为php-fpm提供SysV init脚本,并将其添加至服务列表:
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
为php-fpm提供配置文件:
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
vim /etc/profile.d/php.sh
export PATH='/usr/local/php/bin':$PATH
. /etc/profile.d/php.sh
<div class="md-section-divider"></div>
nginx
# useradd -r nginx
# ./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --user=nginx --group=nginx --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_flv_module --with-http_mp4_module --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi
# make && make install
# mkdir -pv /var/tmp/nginx/{client,proxy,fastcgi,uwsgi}
设置环境变量
# vim /etc/profile.d/nginx.sh
export PATH='/usr/local/nginx/sbin':$PATH
# . /etc/profile.d/nginx.sh
<div class="md-section-divider"></div>
安装git
apt-get install git
安装composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
http://my.oschina.net/jannn/blog/514363
安装php扩展
http://pecl.php.net/package
mongo mongodb redis
安装phalcon
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
phpstorm
安装redis
apt-get install redis-server
连接
redis-cli -h 192.168.1.103 -p 6379 [-a 密码]
<div class="md-section-divider"></div>
mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
mongo 192.168.1.200:27017/数据库名 -u user -p password
http://www.runoob.com/mongodb/mongodb-connections.html
安装virtual box ,xp ,sublime,配置邮箱,aptitude