PigRider Blogs

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

Update NodeJS from v6 to v8 in CentOS with yum

[Author: Dingyu]   [Wed, 2018-03-07, 12:37]   [235 views]

Linux

Try to update NodeJS from v6 to v8 in CentOS with yum. However, yum always installed v6 for me. Found the solution from https://unix.stackexchange.com/questions/261950/why-wont-the-correct-new-version-of-node-js-install-on-centos-7
Solution:
I run "curl --silent --location https://rpm.nodesource.com ... see full article

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]   [6924 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]   [14918 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]   [1823 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]   [721 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]   [891 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]   [1234 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]   [1091 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]   [1287 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]   [1143 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
Previous 1 2 Next

Most Popular in This Category: