Skip to content

开发服务器介绍

建业 edited this page Jan 24, 2014 · 1 revision


社区开发服务器使用

创建时间

  • 2014-01-22

账号

  • 目前已有系统账号:
    • root/7bfc37bd33136be03db19229d7f26b30
  • Samba帐号/密码均为初始化密码
    • taiwen.jiang
    • sibei.li
    • wei.liao
    • zongshu.lin
    • mingquan.wen
    • xitao.zhang

本机hosts设置

修改C:\Windows\System32\drivers\etc\hosts,增加自定义的域名解析:

192.168.0.21  account.eefocus.com
192.168.0.21  sso.eefocus.com
192.168.0.21  engine.eefocus.com

远程登录

  • IP: 192.168.0.21(必须vpn到苏州内网)

数据库访问

  • IP:192.168.0.81 3311 pi_eefocus_account
  • IP:192.168.0.81 3314 pi_article_eefocus

缓存服务器

  • IP:192.168.0.103 11211 eefocus_account 缓存信息

个人Samba目录

  • 路径:\\192.168.0.21\[你的账号]
  • 在Windows文件管理器的“工具”菜单中选择“映射网络驱动器”:
    • 选择一个驱动器盘符,例如Z:
    • 路径:\\192.168.0.21\[你的账号]
    • 勾选“登录后自动连接”

目前开发环境部署

已安装

  • httpd: 2.4.6
  • nginx: 1.4.2
  • php: 5.4
  • samba: 3.0.33

编译安装的程序路径:

/usr/local/

Sites Config:

/etc/nginx/conf/sites-available/

个人site配置(available):

/etc/nginx/conf/sites-available/something.conf

个人site配置(enabled, 用symlink, 必须以conf为扩展名):

/etc/nginx/conf/sites-enabled/something.conf

nginx restart:

/usr/local/nginx/sbin/nginx -s reload

PHP-fpm:

unix:/usr/local/php/var/run/php-fpm.sock

PHP-error log

/var/log/php/php_errors.log 

MySQL:

/data/mysql/端口

Nginx日志:

/var/log/nginx/

Clone this wiki locally