Homebrew setup guide This guide describes how to install Homebrew and few ferequently used Homebrew commands. Using Homebrew you can install software very easily. It is like linux "yum" command. Install Homebrew (The missing package manager for OS X): $/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" $brew doctor (You should see "Your system is ready to brew." on the console output. Do not move forward unless you see this.) Common commands: Check version of brew: $brew --version Search Homebrew repo: $brew search %app name% (i.e: I want to check "wget" is available or not. $brew search wget) Check app information: $brew info %app name% (i.e: $brew info wget) Install software package: $brew install %app name% (brew install tree) Uninstall software package: $brew uninstall %app name% (brew uninstall tree) Check installed packages in your system: $brew list Ins...
After long time later, I am writing my programming blog again. Today, I downloaded glassfish-3.1.2.2-unix.sh. I am running Fedora 16. After successful installation of the glassfish, I was getting error when I ran the the following command: asadmin>start-domain "There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command start-domain failed." Then I checked my hostname of the machine: hostname I got my hostname is nix-domain Now, nix-domain is not listed in the /etc/hosts file. Therefore, I added nix-domain in the file. 127.0.0.1 localhost nix-domain Now, I tried to run the start-domain again. It started perfectly without any error. Therefore, I understood that my machine assigned hostname 'nix-domain' is not listed in the hosts file, glassfish generated the error. I am hoping, it is not only the solution, there must be...
After installing PostgreSQL, type the following command: $ psql -U postgres postgres is the default super user. We login as Postgresql database system by using this super user. Display existing user's roles: postgres-# \du+ Create ps_admin role: postgres=# CREATE ROLE ps_admin WITH LOGIN CREATEDB PASSWORD 'admin'; The ps_admin can login with password 'admin' and can create new database. Note: Here, password is simply 'admin'. In the real life the password should be complex combination of words, symbols and numbers. Display list of roles: postgres=# \du+ You will see something like below: Role Name: ps_admin List of roles Attributes: Create DB Create Database: $createdb testdb -p 5432 -h localhost -U ps_admin; The createdb is command line command. The database name testdb will be created under ps_admin user. It should be run in the console. -p = port (default port is 5432) -h = hostname (default hostname is loclhost) -U = username (ps_admin) It will be prom...
Comments
Post a Comment