[关闭]
@xxliixin1993 2016-07-06T14:09:02.000000Z 字数 2511 阅读 1436

douyu环境配置

未分类


apt-get install build-essential

安装搜狗

  1. sudo apt-get install fcitx libssh2-1
  2. <div class="md-section-divider"></div>

php

  1. useradd -r php
  2. ./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
  3. php提供配置文件:
  4. cp php.ini-production /etc/php.ini
  5. 配置php-fpm
  6. php-fpm提供SysV init脚本,并将其添加至服务列表:
  7. cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
  8. chmod +x /etc/init.d/php-fpm
  9. php-fpm提供配置文件:
  10. cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
  11. vim /etc/profile.d/php.sh
  12. export PATH='/usr/local/php/bin':$PATH
  13. . /etc/profile.d/php.sh
  14. <div class="md-section-divider"></div>

nginx

  1. # useradd -r nginx
  2. # ./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
  3. # make && make install
  4. # mkdir -pv /var/tmp/nginx/{client,proxy,fastcgi,uwsgi}
  5. 设置环境变量
  6. # vim /etc/profile.d/nginx.sh
  7. export PATH='/usr/local/nginx/sbin':$PATH
  8. # . /etc/profile.d/nginx.sh
  9. <div class="md-section-divider"></div>

安装git
apt-get install git

安装composer

  1. curl -sS https://getcomposer.org/installer | php
  2. sudo mv composer.phar /usr/local/bin/composer
  3. http://my.oschina.net/jannn/blog/514363

安装php扩展
http://pecl.php.net/package

  1. mongo mongodb redis

安装phalcon

  1. git clone --depth=1 git://github.com/phalcon/cphalcon.git
  2. cd cphalcon/build
  3. sudo ./install

phpstorm

安装redis

apt-get install redis-server
连接

  1. redis-cli -h 192.168.1.103 -p 6379 [-a 密码]
  2. <div class="md-section-divider"></div>

mongodb

  1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  2. 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
  3. sudo apt-get update
  4. sudo apt-get install -y mongodb-org
  5. sudo service mongod start
  6. mongo 192.168.1.200:27017/数据库名 -u user -p password
  7. http://www.runoob.com/mongodb/mongodb-connections.html

安装virtual box ,xp ,sublime,配置邮箱,aptitude

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注