apache httpd各种文件的路径

ubuntu用apt安装的apache2    主配置文件:/etc/apache2/apache2.conf,  httpd.conf已经废弃不用了。    端口配置:  /etc/apache2/ports.conf    VirtualHost配置: 每个host都定义在/etc/apache2/sites-available文件夹里作为独立文件,然后在/etc/apache2/sites-enabled以连接的方式引用定义文件    Mod配置:  机制与VirtualHost类似        日志文件:/var/log/apache2/ 目录下     php.ini:  /etc/php5/apache2/php.ini  (以phpinfo()打印的为准) centos中的apache2    主配置文件:/etc/httpd/conf/httpd.conf    VirtualHost配置:/etc/httpd/conf.d/all-sites.conf    apache可执行文件:/usr/sbin/apachectl, 如sudo /usr/sbin/apachectl restart  mac os中的apache2    注:mac os中自带了apache和php,不需要另外安装    主配置文件:/etc/apache2/httpd.conf    VirtualHost配置:/etc/apache2/extra/httpd-vhosts.conf . 配置前要去主配置文件中把这行去注释:Include /private/etc/apache2/extra/httpd-vhosts.conf    apache可执行文件:/usr/sbin/apachectl, 如sudo /usr/sbin/apachectl restart 

Fixed Layout 和 Fluid Layout

即固定布局和流动布局,前者用像素定义宽度,后者用百分比。 前者可以确保用户看到的跟设计者看到的风格一致,后者则更可以让宽屏、窄屏用户都有很好的体验。 我比较倾向固定布局,它比较保险; 而流动布局可能一不小心就会弄坏掉。  这里有篇很不错的介绍: http://blog.benhuoer.com/posts/fixed-fluid-elastic-css-layout-comparement.html ================================ 在bootstrap中, css "row" 和 "container" 用于fixed layout, "row-fluid"和"container-fluid"用于fluid layout

收藏一下bootstrap相关的一些链接

不同布局的模板: http://twitter.github.io/bootstrap/getting-started.html#examples 现成的bootstrap css库,快速改变主题:  http://bootswatch.com/ 用less重新编译bootstrap css:  http://bootstrap.lesscss.ru/less.html bootstrap theme的市场: https://wrapbootstrap.com 80个基于bootstrap的建站模板: http://www.tripwiremagazine.com/2013/02/twitter-bootstrap-templates.html , 有的还能跟wordpress整合

为什么vim不能正确地缩进html?

你需要这样: 引用 You have to add the following lines to your .vimrc to make sure vim uses file-specific indentions: filetype on filetype plugin on filetype indent on 看这里: http://stackoverflow.com/questions/10213744/vim-html-autoindent-not-working#10215433

qmail相关资料

查看状态: http://support.godaddy.com/help/article/1582/how-do-i-view-messages-in-the-qmail-queue 引用 #/var/qmail/bin/qmail-qstat #/var/qmail/bin/qmail-qread 查看日志: 引用 # cat /usr/local/psa/var/log/maillog 更多: Basic qmail commands:  http://artoflinux.blogspot.com/2008/02/qmail.html

手动删除qmail的maillog后,就再也看不到有内容的maillog了,怎么办?

如果你手动删除了qmail的maillog, qmail就再也不会自动生成maillog, 你后续的smtp行为都不会再有记录。 即使你手动touch maillog文件,后续的smtp行为也不会在你新建的maillog文件中产生记录。 我今天就是这样手删了一下,结果搞了很久很久都没搞定,直到我开始想: “maillog怎么产生的? 是由splogger写给syslog的;按照‘重启万能论’,是不是重启一下相关服务即可?” 重启 qmail(内置splogger)不起作用后,我 重启syslog服务,就好了。 所以,要解决这个问题,只需: 引用 #service rsyslog restart

spring加载xml时联网下载dtd/schema怎么办?

spring xml 在验证XML时,可能会联网下载dtd, schema; 如果网络有问题,就会出错。 解决办法是:把远程的schema/dtd地址换成本地classpath路径。 比如 <!– Before –> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <!– After –> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" " classpath:org/apache/ibatis/builder/xml/mybatis-3-config.dtd"> 参考: https://groups.google.com/forum/?fromgroups=#!topic/mybatis-user/ssNHzaDWn-w http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection