How to optimize Ubuntu and linux
08.07.2009 by admin - 0 CommentPosted in linux
Now,It’s very late in china.I look a blog post just moment.so many things you must ask:”how to….?”so many how to can make you to study more.
so many people ask me:how to optimize Ubuntu or how to optimize linux.I tell them.Optimize Ubuntu or Optimize Linux is very easy.but you allways ask youself.how to Solve this problem.
now,we are start study How to optimize Ubuntu and linux.
1.how to do Open the web so slowly in ubuntu or linux.
you can install dnsmasq
you can ask google more about dnsmasq.
sudo apt-get install dnsmasq
how to set the dnsmasq.conf
sudo gedit /etc/dnsmasq.conf
and find this code
#resolv-file=
Replacement
resolv-file=/etc/resolv.dnsmasq.conf
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
how to Editor resolv.conf
sudo gedit /etc/resolv.conf
and add
nameserver 127.0.0.1
now ,you can restart your ubuntu or linux.
2.how to optimize swappiness
How do view your ubuntu or linux default swappiness
sysctl -q vm.swappiness
I suggest that you modify swappiness to 10.
sudo sysctl vm.swappiness=10

