linux 从0开始

网络配置:

http://blog.51yip.com/linux/1120.html

网络配置为自动获取


vi命令参考:

http://c.biancheng.net/cpp/html/2735.html


Vim 安装

http://yjph83.iteye.com/blog/2282259


secureCRT 乱码问题

http://riching.iteye.com/blog/349754


Linux 目录介绍

http://yangrong.blog.51cto.com/6945369/1288072


wget 安装

http://www.cnblogs.com/chusiping/archive/2011/11/10/2243805.html


redis 安装

https://redis.io/download

$ wget http://download.redis.io/releases/redis-4.0.0.tar.gz
$ tar xzf redis-4.0.0.tar.gz
$ cd redis-4.0.0
$ make

安装GCC

sudo yum install gcc gcc-c++
 

安装 telnet

yum install telnet –y


You need tcl 8.5 or newer in order to run the Redis test.

http://www.cnblogs.com/Security-Darren/p/4381932.html

 

sudo 是什么

http://man.linuxde.net/sudo

防火墙

http://blog.csdn.net/spxfzc/article/details/39645133

 

Redis:DENIED Redis is running in protected mode because protected mode

http://crfsz.blog.51cto.com/7835882/1878137


redis 自动启动

https://my.oschina.net/indestiny/blog/197272第一参考

https://gist.github.com/shootsoft/8334180#file-redis-L6 参考了一下。

对于自启动的问题,脚本上面文件注释部分也参与了将脚本改为 ,两篇文章中给出的脚本上面有所不同。

#!/bin/bash
#Init file for redis
#
# chkconfig: - 80 12
# description: redis daemon
#
# processname: redis
# config: /etc/redis.conf
# pidfile: /var/run/redis_6379.pid

PATH=/usr/local/bin:/sbin:/usr/bin:/bin

REDISPORT=6379 #实际环境而定
EXEC=/usr/apps/redis/redis-4.0.0/src/redis-server #实际环境而定
REDIS_CLI=/usr/apps/redis/redis-4.0.0/src/redis-cli #实际环境而定

PIDFILE=/var/run/redis_6379.pid
CONF="/usr/apps/redis/redis-4.0.0/redis.conf" #实际环境而定

case "$1" in
         start)
                 if [ -f $PIDFILE ]
                 then
                         echo "$PIDFILE exists, process is already running or crashed."
                 else
                         echo "Starting Redis server..."
                         $EXEC $CONF
                 fi
                 if [ "$?"="0" ]
                 then
                         echo "Redis is running..."
                 fi
                 ;;
         stop)
                 if [ ! -f $PIDFILE ]
                 then
                         echo "$PIDFILE exists, process is not running."
                 else
                         PID=$(cat $PIDFILE)
                         echo "Stopping..."
                         $REDIS_CLI -p $REDISPORT SHUTDOWN
                         while [ -x $PIDFILE ]
                         do
                                 echo "Waiting for Redis to shutdown..."
                                 sleep 1
                         done
                         echo "Redis stopped"
                 fi
                 ;;
         restart|force-reload)
                 ${0} stop
                 ${0} start
                 ;;
         *)
                 echo "Usage: /etc/init.d/redis {start|stop|restart|force-reload}" >&2
                 exit 1
esac


 

 

rabbitMq安装

https://github.com/judasn/Linux-Tutorial/blob/master/RabbitMQ-Install-And-Settings.md

 

erlang 依赖项的安装

yum install epel-release



linux 上传下载工具

http://oldboy.blog.51cto.com/2561410/588592


安装JDK

http://os.51cto.com/art/201609/517037.htm


tomcat 安装

http://www.jianshu.com/p/6a9fa018b506


nginx 安装

http://www.runoob.com/linux/nginx-install-setup.html


nginx  反向代理设置

https://www.ttlsa.com/nginx/use-nginx-proxy/


Mysql

http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html

需要先   rpm -ivh mysql-community-release-el7-5.noarch.rpm   (http://www.centoscn.com/CentosBug/osbug/2016/0616/7445.html

posted @ 2017-07-24 17:00  张保维  阅读(127)  评论(0编辑  收藏  举报