My Linux files/dirs Distribution

Here is my linux files/dirs distribution. Main purpose is to easily centralized data maintenance.

 

Company abc’s directory
/data/abc/

 

All web applications
/data/abc/vhosts/

 

All the packages and dependencies
/data/abc/soft_misc/ 放所有linux的安装包和依赖包

 

Logs
/data/abc/weblog/

 

Cache folder for eaccelerator_cache
/data/abc/eaccelerator_cache/

 

For storing MySQL data
/data/abc/mysqldata/
/data/abc/mysqldata/mysql_m1 分布式mysql master数据库
/data/abc/mysqldata/mysql_s1 分布式mysql slave 1 数据库
/data/abc/mysqldata/mysql_s2 分布式mysql slave 2 数据库

 

For subversion data and configurations
/data/abc/svndata/

 

Installation destination of company abc
/usr/local/abc/

 

Web servers destination, e.g. apache, nginx, ruby, php
/usr/local/abc/webserver

 

For subversion server
/usr/local/abc/svnserver

 

Posted in Linux | Tagged | Leave a comment