工具与中间件
文章平均质量分 86
Git、Nginx、Redis等学习
lerry_lca
路漫漫其修远兮,吾将上下而求索。
展开
-
Elasticsearch安装与分词插件、用户词典、同义词配置等
简介本文介绍了全文搜索引擎Elasticsearch的安装过程,以及ik中文分词插件、用户词典、同义词的配置。Elasticsearch安装值得注意的是,Elasticsearch运行需要Java环境。因此安装前需要提前配置好Java环境。官网方式下载进入官网 下载对应版本,本文选择的版本为6.8.13。启动解压下载的包到磁盘上,进入Elasticsearch目录。如果是windows,打开bin/目录下的elasticsearch.bat如果是linux,在Elasticsear原创 2022-04-01 21:09:41 · 3359 阅读 · 4 评论 -
Git配置ssh
Git全局设置#配置用户名、邮箱git config --global user.name "用户名"git config --global user.email "邮箱地址"#查看用户名、邮箱git config user.namegit config user.emal生成ssh密钥ssh-keygen -t rsa -C "邮箱地址"#敲三次回车,生成公钥和私钥(id_rsa.pub和id_rsa)将公钥信息添加到远程库#查看生成的公钥,注意上一步生成的路径cat 路径/i原创 2020-11-05 17:10:46 · 170 阅读 · 0 评论 -
阿里云服务器ubuntu安装nginx并配置端口
一、安装nginxsudo apt-get install nginx默认的web目录/usr/share/nginx/html配置文件/etc/nginx/nginx.conf配置文件nginx.conf并没有直接配置端口,而是通过引入其他配置文件来配置...http {... server {... include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-en...原创 2020-11-04 22:16:36 · 833 阅读 · 0 评论 -
【Git问题解决】git@gitee.com: Permission denied (publickey).
问题:git@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.解决办法:重新生成ssh并把公钥添加到gitee也不行,后来在公钥id_rsa.pub对应路径下找到config文件,修改里面的验证文件,使其对应上原创 2020-09-16 16:32:11 · 693 阅读 · 0 评论 -
docker入门——部署Java web项目
准备mysql#下载mysql镜像docker pull mysql:5.7#运行mysql容器docker run -p 3306:3306 --name mysql -v D:\DockerWorkspace\mysql\conf:/etc/mysql/conf.d -v D:\DockerWorkspace\mysql\logs:/logs -v D:\DockerWorksp...原创 2019-07-16 20:56:55 · 479 阅读 · 0 评论 -
Nginx指定路径拦截静态页面
修改配置文件中的location# 在配置文件(default或者自定义配置文件)加上如下内容# 表示/helloWorld请求会被定义到/home/hello/helloWorld.html... location /helloWorld { alias /home/hello; index helloWorld.html; }...拦截静态资源# css/js等静态资源请求会被拦截并转到/var/www路原创 2020-11-05 17:28:18 · 2938 阅读 · 0 评论