查看linux configure arguments

We can use nginx as an example:

[[email protected]:~]nginx -V
nginx version: nginx/1.4.1
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled
configure arguments: –prefix=/etc/nginx/ –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/var/cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
–http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=nginx –group=nginx –with-http_ssl_module
–with-http_realip_module –with-http_addition_module –with-http_sub_module –with-http_dav_module
–with-http_flv_module –with-http_mp4_module –with-http_gzip_static_module –with-http_random_index_module
–with-http_secure_link_module –with-http_stub_status_module –with-mail –with-mail_ssl_module
–with-file-aio –with-ipv6 –with-cc-opt=’-O2 -g’ –add-module=/usr/src/headers-more-nginx-module-0.20

 

If we compile nginx from source, we can use

./configure –with-http_flv_module –with-http_mp4_module –with-other-modules

在landing page上增加audio

一般人的解决方案是用niftyplayer 来增加audio,但是我个人可能会更加喜欢yahoo media 的解决方案。 Anyway,众口相传的解决方案确实是有道理的

使用办法:

  1. 下载niftyplayer: niftyplayer
  2. 把下列代码加入你的LP当中

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ width=”165″ height=”38″ id=”niftyPlayer1″ align=””>
<param name=movie value=”niftyplayer.swf?file=betty.mp3&as=1″>
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src=”niftyplayer.swf?file=betty.mp3&as=1” quality=high bgcolor=#FFFFFF width=”165″ height=”38″ name=”niftyPlayer1″ align=”” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”>
</embed>
</object>

注意字体为红色的地方,是你需要修改的

把betty.mp3改为你的mp3的文件

as = 1 表示自动播放,0表示不是自动播放

 

12个常用的社区开发者网站

新闻资讯类

Hacker News

Hacker News是一家关于计算机黑客和创业公司的社会化新闻网站,在该站,你可以实时看到编程界发生的新闻、新的学习资源、新的教程等等,也可以从从用户提交的数据中找到适合你的学习资源,学习者可以从这个网站找到更适合自己的新资源。

网址:https://news.ycombinator.com/news

DZone

与Hacker News相似,DZone也是一个类似IT新闻形式的编程社区,用户可以在网站内分享最新的IT新闻和编程资源,其文章质量由内容管理员来把关,所以不用过多的担心会有垃圾资讯。

网址:http://www.dzone.com/links/index.html

更多