service postgresql start
[....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2015-02-07 18:52:12 CST LOG: could not translate host name "localhost", service "5432" to address: Name or service not known 2015-02-07 18:52:12 CST WARNING: could not create listen socket for "localhost" 2015-02-07 18:52:12 CST FATAL: could not create any TCP/IP sockets .[F failed!
failed!
/etc/hosts
add "127.0.0.1 localhost"