Archives 2015

fedora mysql root Password Reset

1.Stop mysql service

[root@localhost han]#/etc/init.d/mysqld stop
Stop MySQL: [OK]

2.Start mysql service with the following command

[root@localhost han]#mysqld_safe --user=mysql --skip-grant-tables --skip-networking &

(Prompt message: [root@localhost han]# nohup: ignoring input and redirecting stderr to stdout Starting mysqld daemon with databases from /var/lib/mysql)

3 ...

Continue reading

linux vps iptables Firewall configuration shell

#!/bin/bash
echo "clean all rules before"
iptables -F
iptables -X

echo "setting up default rules"
iptables -P FORWARD ACCEPT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT

echo "allow local address"
iptables -A INPUT -i lo -p all -j ACCEPT

echo "allow now connection"
iptables -A INPUT -p all -m state --state ESTABLISHED,RELATED ...

Continue reading

CentOS yum upgrade Python 2.6 to 2.7

CentOS system comes python2.6.6 by yum upgrade to python2.7

1.Install Upgrade
wget http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm  
(x86_64) 
or
wget http://li.nux.ro/download/nux/dextop/el6/i386/nux-dextop-release-0-2.el6.nux.noarch.rpm 
(i386)
rpm -ivh nux-dextop-release-0-2.el6.nux.noarch.rpm ...

Continue reading

Monthly archives

Next year

2016