top

Getting lighttpd to bind to multiple address/socket

For nginx and apache, you can just specify multiple Listen statements. For lighttpd however, you need to do it a little bit differently.

You need to make sure to specify the port for the 2nd "bind":

server.bind		   = "1.2.3.4"
$SERVER["socket"] == "2.3.4.5:80" {}

Setting JAVA_HOME in SMF (environment variables)

First, ensure your application is in Solaris's SMF. Here is an example for a Tomcat application server. The same steps will work for Glassfish and other Java applications.

Get the FMRI name. The string that starts with "svc".

root@rule:/# svcs -av |grep tomcat6
online - 6:00:59 775330 svc:/network/http:tomcat6-csk
root@rule:/#

Now set the JAVA_HOME and refresh the SMF service.

root@rule:/# svccfg -s svc:/network/http:tomcat6-csk setenv -m stop JAVA_HOME /usr/jdk/latest
root@rule:/# svccfg -s svc:/network/http:tomcat6-csk setenv -m start JAVA_HOME /usr/jdk/latest
root@rule:/# svcadm refresh svc:/network/http:tomcat6-csk
root@rule:/#

That should do it. You can then do ps -ef |grep java to check that you are using the latest JDK available on the system in /usr/jdk/latest.

From time to time, we upgrade the JDK. So, if you have applications that require a specific version you'll of course not want to use /usr/jdk/latest. You can see the other JDK versions available in /usr/jdk.

Update

For Glassfish, you can update /usr/local/glassfish/config/asenv.conf file by adding or changing AS_JAVA="/usr/jdk/latest" to it. That'll also ensure that Glassfish starts up with the correct JRE.

Internet Pulse

Here is an interesting site http://internetpulse.com, you can check the general network performance between the big network providers.

Recent software releases (in the industry)

Here is a quick list of the recent software releases that we think are pretty big in their area. If we missed something else, be sure to let us know.

JDK 1.6.0u10: faster startup, better desktop integration
OpenOffice 3: MS office 2007 compatible, a whole load of other improvements
OpenSolaris 2008.11: Time Slider, Great new desktop software (Songbird)
Python 3: 3 years in the making, long standing bugs fixed, better unicode support
Mysql 5.1: Big performance improvements

All of them have had previous beta or release candidates but now that they are all in their final release stage, you can use it in production!

Making sense of Solaris distributions

There are a few different Solaris distributions out there produced both by Sun and the Open source community. Here is a quick run down on the differences.

The OS source code is distributed at http://opensolaris.org.

Bleeding Edge - Community/Developer

OpenSolaris 2008.11 (Indiana releases)

* Based on Open Solaris
* This comes with a live CD
* It is released in a 6 month cycle with 18 month support from Sun
* Uses IPS packaging/repo
* Free

Sun Support - Commercial

Solaris 10 10/08

* Six month updates - latest version: Solaris 10 u6
* SPARC and x86 platforms
* SRv4 packaging/repo
* Free

SXCE (Nevada releases)

* Based on Open Solaris
* Slated to become the next version of Solaris
* Updates available twice per month
* Has some additional features that Sun does not release to the Open Source community
* Srv4 packaging/repo
* Sun support not available
* Free

There are also several other Open Solaris distributions. One of which is NexentaOS, a OpenSolaris based OS topped with GNU software.

← Previous  1 … 9 10 11 12 13 14 Next →