PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 2 Next

Install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1

[Author: Dingyu]   [Tue, 2017-03-14, 16:14]   [5565 views]

Ruby on Rails Linux

An easy, straightforward, understandable, and painless process to install or upgrade to Solr 4.10 with Jetty in CentOS 6.6, and set up Solr server to work with Sunspot Gem 2.1.1
1. Install Java OpenJDK. Solr 4.10 requires Java 1.7 or greater. I installed Java 1.8 for myself.
yum list java*
# (option ... see full article

Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem.

[Author: Dingyu]   [Tue, 2017-03-14, 16:13]   [13358 views]

Ruby on Rails Linux

The process to install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem:
(Please click here to see my latest blog for installing Solr 4.10, in which I developed an easy, straightforward, understandable, and painless method to let Solr work together with Sunspot gem.)
1. ... see full article

Setup Ruby on Rails environment in Centos with Apache and MySQL

[Author: Dingyu]   [Tue, 2016-07-12, 16:52]   [1390 views]

Ruby on Rails Linux

Install RVM (Ruby Version Manager)
sudo curl -sSL https://get.rvm.io | bash -s stable
rvm requirements
Install Ruby
rvm install 2.0.0
rvm use 2.0.0 --default
Install Rails
gem install rails
Install MySQL
sudo yum install mysql-server mysql-devel
sudo chkconfig mysqld on
sudo service mysqld restart
S ... see full article

Good Article About Linux Permissions

[Author: Dingyu]   [Tue, 2016-07-12, 14:17]   [400 views]

Linux

Good Article About Linux Permissions
https://www.linux.com/learn/understanding-linux-file-permissions ... see full article

Use "gedit" edit files on a remote server which doesn't support GUI

[Author: Dingyu]   [Wed, 2016-03-09, 19:17]   [617 views]

Linux

Memo
Use "gedit" edit files on a remote server which doesn't support GUI:
ssh -C -Y username@serverhostname gedit /path/of/the/file
Here:
-C      Requests compression of all data (including stdin, stdout,
        stderr, and data for forwarded X11 and TCP/IP connections).  The
        compression al ... see full article

Setting up an SSL secured Webserver with CentOS

[Author: Dingyu]   [Sat, 2015-07-04, 16:57]   [969 views]

Linux

Setting up an SSL secured Webserver with CentOS
http://wiki.centos.org/HowTos/Https ... see full article

Nice Bash Script Tutorials

[Author: Dingyu]   [Fri, 2015-03-13, 16:25]   [836 views]

Linux

http://linuxconfig.org/bash-scripting-tutorial ... see full article

Serving Rails pre-compressed assets through Apache

[Author: Dingyu]   [Thu, 2015-02-26, 03:07]   [1033 views]

Ruby on Rails Linux

Serving Rails pre-compressed assets through Apache
Use the below configuration template in the file /etc/httpd/conf/httpd.conf to configure a Rails application.
<VirtualHost *:80>
    ServerName mywebsite.com
    DocumentRoot /my/rails_app/public
    <Directory /my/rails_app/public>
        Al ... see full article

Set firewall rules for ports in Linux (Centos)

[Author: Dingyu]   [Thu, 2014-11-20, 13:22]   [891 views]

Linux

vi /etc/sysconfig/iptables
service iptables restart
-------------------------------------------------------------------
A setting example for /etc/sysconfig/iptables :
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT AC ... see full article

Vim Cheat Sheet

[Author: Dingyu]   [Wed, 2014-01-15, 15:10]   [1400 views]

Linux

In the Insert Mode
Esc Go back to the normal mode.
In the Normal Mode
i Change into the insert mode. Insert text before the character under the cursor.
a Change into the insert mode. Append text after the character under the cursor.
o Change into the insert mode. Create a new, empty line below the c ... see full article
Previous 1 2 Next

Most Popular in This Category: