Firefox 16, a treat for developers http://t.co/cnd27CzT
postgresql-bin/systemctl initdb postgresql.service Unknown operation initdb | Solved
Question : I get this error when starting postgresql server on fedora 16
[pirat9@Fedora16 forum]$ sudo service postgresql initdb Output Redirecting to /bin/systemctl initdb postgresql.service Unknown operation initdb
Solution:
Use the following commands to correct the issue:
[root@Fedora16 ~]# su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" Output The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/pgsql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 24MB creating configuration files ... ok creating template1 database in /var/lib/pgsql/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating collations ... ok creating conversions ... ok creating dictionaries ... ok setting privileges on built-in objects ... ok creating information schema ... ok loading PL/pgSQL server-side language ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: postgres -D /var/lib/pgsql/data or pg_ctl -D /var/lib/pgsql/data -l logfile start [root@Fedora16 ~]#
Start the Server now
[root@Fedora16 ~]# service postgresql start Output Redirecting to /bin/systemctl start postgresql.service
[root@Fedora16 ~]# ps -ef | grep sql Output postgres 3045 1 1 22:03 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432 postgres 3046 3045 0 22:03 ? 00:00:00 postgres: logger process postgres 3048 3045 0 22:03 ? 00:00:00 postgres: writer process postgres 3049 3045 0 22:03 ? 00:00:00 postgres: wal writer process postgres 3050 3045 0 22:03 ? 00:00:00 postgres: autovacuum launcher process postgres 3051 3045 0 22:03 ? 00:00:00 postgres: stats collector process root 3186 2874 0 22:04 pts/0 00:00:00 grep --color=auto post
ENJOY
For questions please refer to our Q/A forum at : http://ask.unixmen.com
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
How to use Remote Desktop in Ubuntu : Sometimes, we need to access our computer from other locations when we’re not at home and such. This...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Steganography- Hide Your Files Inside An Image in Linux : Nowadays, our personal computer is not only a work tool, it is also our private space where we sto...1 comment(s) |
Recent Posts
Recent Posts
- Steganography- Hide Your Files Inside An Image in Linux
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
- A Secure Password
- Linux Kernel 3.10. It’s BIG!
- Monitoring Users Activity Using psacct or acct Tools in Linux
- Run Your Own Social Network Using elgg on RHEL / CentOS and Scientific Linux
Recent Comments

Maintained by
Anblik
.


















Hugo Castañeda Benitez
| #
Can I do the same in ubuntu 12.04?
LinuxSytesNet
| #
Yesterday watched a movie with Morgan Freeman called ‘ A long came a spider ‘ and must say that I was quite impressed how they exchanged encrypted messages hidden in pictures. Thank you for the tutorial :)
Bjarni
| #
Excellent, thanx!
Ambiton
| #
Thank you very much Chris :)
Lolman
| #
in cmd