Skip to content

Instantly share code, notes, and snippets.

@1yx
Last active August 27, 2016 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1yx/1a2ebc0bf3d9afaaeda9 to your computer and use it in GitHub Desktop.
Save 1yx/1a2ebc0bf3d9afaaeda9 to your computer and use it in GitHub Desktop.
install staff on Linux

CentOS 6

the_silver_search

$ sudo yum install -y pcre-devel

$ sudo yum install xz-devel

$ cd /usr/local/src

$ sudo git clone https://github.com/ggreer/the_silver_searcher.git

$ cd the_silver_searcher

$ sudo ./build.sh

$ sudo make install

$ which ag

nginx

$ sudo yum install epel-release

$ sudo yum install nginx

redis

$ sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

$ sudo yum --enablerepo=remi,remi-test install redis

$ cat /etc/redis.conf
$ wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm

$ sudo rpm -Uvh mysql57-community-release-el6-7.noarch.rpm

$ yum repolist all | grep mysql

$ sudo yum install mysql-community-server'

$ sudo grep 'temporary password' /var/log/mysqld.log

> set password = password('4xfUsGjRac*V/2bG');


> CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';

> GRANT ALL ON *.* TO 'myuser'@'%';
@1yx
Copy link
Author

1yx commented Feb 18, 2016

$ cat /etc/centos-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment