Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

study-linux

Linux学习笔记

常用命令

grep命令基本用法

软件安装

JDK+Maven

添加环境变量

vi .bash_profile

末尾追加如下内容, JAVA_HOME、MAVEN_HOME你懂的,需要修改成自己的目录

export JAVA_HOME=/home/bage/professional/jdk1.8.0_131
export MAVEN_HOME=/home/bage/professional/apache-maven-3.6.1
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

source 一下,使配置生效

source .bash_profile

Maven

Nginx 安装

./configure 缺少依赖pcre

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

处理方式

yum install pcre-devel

./configure 缺少依赖zlib

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.

处理方式 yum install zlib-devel

安装

./configure

或者

./configure --prefix=/home/bage/professional/nginx-1.15.0

配置说明

location配置参考 https://www.cnblogs.com/coder-yoyo/p/6346595.html

  location = /uri      =    开头表示精确匹配,只有完全匹配上才能生效。
  location ^~ /uri     ^~   开头对URL路径进行前缀匹配,并且在正则之前。
  location ~ pattern    ~    开头表示区分大小写的正则匹配。
  location ~* pattern   ~*   开头表示不区分大小写的正则匹配。
  location /uri       /uri 不带任何修饰符,也表示前缀匹配,但是在正则匹配之后。
  location /         /    通用匹配,任何未匹配到其它location的请求都会匹配到,相当于switch中的default。

ActiveMQ

Linux下载

wget http://activemq.apache.org/path/tofile/apache-activemq-5.15.4-bin.tar.gz

加入安装路径

cd ${activemq_install_dir}
tar zxvf activemq-5.15.4-bin.tar.gz

启动

cd ${activemq_install_dir}/bin
./activemq start

Nodejs

Linux下载

加入安装路径

启动

Nexus