1. click on terminal 2. sudo nano /etc/resolv.conf 3. add following DNS entries into file (free google dns server) nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 202.51.5.52 4. sudo /etc/init.d/resolvconf restart 5. restart chrom browser. 6. check proxy setting. proxy should be disable / enabled according to your network setting. 7. type ping google.com Now you should be able to access internet or able to resolve DNS error. Enjoy.
Friday, January 18, 2013
DNS Lookup Error in google chrom browser in linux
1. click on terminal 2. sudo nano /etc/resolv.conf 3. add following DNS entries into file (free google dns server) nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 202.51.5.52 4. sudo /etc/init.d/resolvconf restart 5. restart chrom browser. 6. check proxy setting. proxy should be disable / enabled according to your network setting. 7. type ping google.com Now you should be able to access internet or able to resolve DNS error. Enjoy.
Tuesday, December 25, 2012
SOAP Web-Service via .netBean
Step 1: Create a normal Java Web Project in .netBean IDE.
Step 2: Select project node and right click and select web service.
Step 3: Once a web service via design mode. Add operation via design mode, also add input parameter and output parameters and exceptions in web service .
Step 4: add required business logic in newly added operation.
Step 5: Compile Project and Deploy into server and test it via wsdl file.
Thursday, October 11, 2012
Wednesday, September 26, 2012
Set JAVA_HOME / PATH
Login to your account and open .bash_profile file
$ vi ~/.bash_profile
et JAVA_HOME as follows using syntax export JAVA_HOME=<path-to-java>. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
Set PATH as follows:
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
$ source ~/.bash_profile
$ vi ~/.bash_profile
et JAVA_HOME as follows using syntax export JAVA_HOME=<path-to-java>. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
Set PATH as follows:
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
$ source ~/.bash_profile
Monday, September 24, 2012
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
A frequent error message received when using the mysql command line utility is: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ While this error message can be frustrating, the solution is simple.
When connecting to a MySQL server located on the local system, the mysql client connects thorugh a local file called a socket instead of connecting to the localhost loopback address 127.0.0.1. For the mysql client, the default location of this socket file is /tmp/mysql.sock. However, for a variety of reasons, many MySQL installations place this socket file somewhere else like /var/lib/mysql/mysql.sock.
While it is possible to make this work by specifying the socket file directly in the mysql client command
mysql --socket=/var/lib/mysql/mysql.sock ...
it is painful to type this in every time. If you must do so this way (because you don’t have permissions to the file in the solution below), you could create an alias in your shell to make this work (like alias mysql=”mysql –socket=/var/lib/mysql/mysql.sock” depending on your shell).
To make your life easier, you can make a simple change to the MySQL configuration file /etc/my.cnf that will permanently set the socket file used by the mysql client. After making a backup copy of /etc/my.cnf, open it in your favorite editor. The file is divided into sections such as
[mysqld] datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock
[mysql.server] user=mysql
basedir=/usr/local/mysql
If there is not currently a section called [client], add one at the bottom of the file and copy the socket= line under the [mysqld] section such as:
[client] socket=/var/lib/mysql/mysql.sock
If there is already a [client] section in the my.cnf file, add or edit the socket line as appropriate. You won’t need to restart your server or any other processes. Subsequent uses of the mysql client will use the proper socket file.
Sunday, September 23, 2012
Install memcached on ubuntu
Brie Introduction :
"MemCached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load."
"MemCached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load."
Basically, it means it save and retrieve data in the server memory. This is typically used to remove the loads on the database server.
The logic of MemCached is very simple:
- You verify if MemCached has the data you need, if so you simply use it.
- if not, you save the data into MemCached and then use it.
run the following command to install memcached:
sudo aptitide install memcached
If you want to change the default settings, simply create the file and update the configuration.
First, create memcached configuration file:
vi /etc/memcached.conf
Then, change the settings:
# Memory a usage in Mb
-m 16
# default port
-p 11211
# user to run daemon nobody/apache/www-data or else
-u nobody
# only listen locally
-l 127.0.0.1
Save and quit the file. Once this is complete, don't forget to restart the daemon:
sudo /etc/init.d/memcached restart
Now lets install for php
sudo aptitude install php5-memcache
Restart both services:
sudo /etc/init.d/memcached restart ; sudo /etc/init.d/apache2 restart
If you would like additional information about MemCached please visit: http://memcached.org/
Friday, September 21, 2012
Increase file handler on OS level
Open file : vi /etc/security/limits.conf
Add following two lines at bottom of limits.conf file
* soft nofile 65535
* hard nofile 65535
restart your machine. This will increase number of file handler to 65535. By-Default, Linux having 1024 handler.
Subscribe to:
Posts (Atom)