Ask To Apps
  • Home
  • WordPress
  • Elasticsearch
  • PHP
  • Linux
  • Website Peformance

Tag : linux-commands

Linux Commands : 1

07/04/2013 Article

Create symlink of file

ln -sf <source file path>/<filename> <destination file path>/<filename>

cat <destination file path>/<filename>

Generate ssh key of user

ssh-keygen -t rsa

cat ~/.ssh/id_rsa.pub

Password less auth from both server, add ssh keys of each other into authorized keys

vi ~/.ssh/authorized_keys

Switch user

su - <username>

Kill services

kill -9 <process id>

killall -e <process name>

Check apache and mysql is running or not

ps aux | grep httpd

ps aux | grep mysql

Retrieve file using http, https and ftp

wget <http url>

File count in folder
<code
cd <folder path>

ls | wc -l

Check system version

cat /etc/redhat-release

 

 

Categories: Linux

Tags: Linux Command, Linux Commands

About Author:

Linux Commands

07/04/2013 Article

Connect to the remote server

ssh <username>@<ipaddress>

Create file

vi <file name>

Save file

:w!

Save and Quit

:wq!

Quite without saving

:q

Copy File

cp <filepath>/<filename>  <target file path>/<filename>

Move file

mv <filepath>/<filename>  <target file path>/<filename>

Remove File

rm <filepath>/<filename>

Search In file

:/<string to search>

Search and replace all in file

:%s/<search string>/<replace string>

Go to the specific line

:<line number>

Copy remote file to the local

scp <remoteuser>@<remote ip>:<remote path>/<remote file name> <local path>

Open file as read only

cat <file path>/<file name>

Create directory

mkdir <directory name>

Check directory

cd <directory name>

List all files from folder or directory

cd <folder path>
ls

List file with an order

cd <folder path>
ls -lah

Remove file recursively

cd <folder path>
rm -r *

Remove files forcefully recursive

cd <folder path>
rm -rf *

Categories: Linux

Tags: Linux Commands

About Author:

Elasticsearch Installation and Configuration

25/03/2013 Article

Elasticsearch is …

  • Open Source (Apache 2)
  • Distributed
  • RESTful
  • Search Engine built on top of Apache Lucene.

It is …..

  1. Very fast
  2. Schema Free
  3. JSON over HTTP
  4. Scale to hundred and real time search.

 Installation

Elasticsearch is based on java, so we need to install JAVA>6


yum install java-1.7.0-openjdk.x86_64
java -version

Download source from


wget https://download.elasticsearch.org/
elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz
tar -xvf elasticsearch-0.20.5.tar.gz
cp -r elasticsearch-0.20.5.tar.gz elasticsearch
cd elasticsearch

Add elastic home path in “.bash_profile”


export $ES_HOME=/home/elasticsearch

Start/Run Elasticsearch


cd elasticsearch
bin/elasticsearch -f

Is it started?

You can confirm it by browsing URL like - http://127.0.0.1:9200/, it will shows something like


{
"ok" : true,
"status" : 200,
"name" : "Neville, Kate",
"version" : {
"number" : "0.20.5",
"snapshot_build" : false
},
"tagline" : "You Know, for Search"
}

 

Categories: Elasticsearch, Linux, Website Peformance

Tags: Apache Lucene, Distributed, Elastic Index, Elasticsearch, JSON over HTTP, Linux Commands, Open Source, optimization, performance, real time search, remote sync, RESTful, Scale, Schema Free, Search Engine, Search Index, Very fast

About Author:

Recent Posts

  • Install and configure logstash-forwarder
  • Redirect request on php script through squid proxy
  • Alerting for Elasticsearch : Log watcher in elasticsearch using ES Watcher
  • Detect face from image using python script with OpenCV
  • Change mysql root password on centos
  • Search part of word in elasticsearch using nGram – auto-complete search
  • Connect VPN on centos linux using command line
  • Custom river plugin in elasticsearch
  • Backup elasticsearch with snapshot and restore api
  • PHP code to exact keywords from text.

Tags

apache Apache Lucene cache Distributed Elastic Index Elasticsearch elasticsearch performance Git Clone Git Hub Git Hub Configuration Git Hub Installation grep Import Install MySQL JSON over HTTP Linux Linux Command Linux Commands Linux search local file lsyncd md5sum Multile Domain Multisite MySQL Open Source optimization performance php performance real time search remote file Remote Git Hub remote sync RESTful Scale Schema Free Search Engine Search Index Search keyword static cache Sub Domain sync Very fast Wordpress Wordpress multisite

Copyright Ask To Apps 2021 | Proudly powered by WordPress

facebook twitter google linkedin Email Rss