Installing the latest MySQL 5.6 on Amazon Linux using official repos Below are the process/steps for installation: sudo yum localinstall http://repo.mysql.com/mysql-community-release-el6-3.noarch.rpm sudo yum install mysql-community-server sudo service mysqld start Configure mysqld to start on boot: sudo chkconfig mysqld on chkconfig –list mysqld And that’s it, you’re all set up and …
Read More »How to install vlc player in centos
$ cd /etc/yum.repos.d/ $ wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo $ yum -y install vlc Step 1: Add Repository for Linuxtech – First switch user to “root” account with command “su -“ – Next run the following commands $ cd /etc/yum.repos.d/ $ wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo Step 2: Check VLC version in Repo – Run following …
Read More »Recursively change Directory and File Permission in Linux
Change Directory Permission recursively. $ find . /var/www/html/ -type d -exec chmod 755 {} \; Change File Permission recursively. $ find . /var/www/html/ -type f -exec chmod 644 {} \;
Read More »How to Change Hostname in centos
$ vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=newHostName and: $ vi /etc/hosts 127.0.0.1 newHostName 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 and then rebooting the system
Read More »How to import mysql database using command line in linux
$ mysql -u root -p database < database_bkup.sql
Read More »How to dump mysql database using command line in linux
$ mysqldump -h mysql-server-example.com -port=3306 -u root -p database_name > database_bkup.sql
Read More »Copy data by rsync from one server to another server in linux
Basic syntax of rsync command $ rsync options source destination $ rsync -avzh /root/rpmpkgs /tmp/backups/ $ rsync -avz rpmpkgs/ root@192.168.0.101:/home/ Copy a File from a Remote Server to a Local Server with SSH $ rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/ Copy a File from a Local Server to a Remote Server …
Read More »Way to clear your command history from the terminal in Mac OS X and Linux
After typing a few commands in the terminal you may eventually want to flush it out. A quick (but insufficient way) to clear the command history on your Mac or Linux box is to type: history -c This purges all the commands for the current session stashed in a file …
Read More »Linux Command
Swich the user to root user $ sudo su Install httpd service $ sudo yum install httpd Install mysql-server service $ sudo yum install mysql-server Install php & php-mysql $ sudo yum install php php-mysql Install phpmyadmin $ sudo yum –enablerepo=epel install phpmyadmin Edit the httpd.conf file $ nano /etc/httpd/conf/httpd.conf …
Read More »Unlink or Remove a Symbolic link in Linux
How to unlink or remove a symbolic link in linux that was created with “ln” command Use the unlink command To unlink a symbolic link file : # unlink symbolic_link_file To unlink a symbolic link to a directory : # unlink symbolic_link_dir When unlinking a directory make sure that you …
Read More »