使用SSH内网穿透加Nginx反向代理之后获取真实IP 发表于 2018-08-06 | 分类于 系统运维 | 配置Nginx123456789location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri/ =404; proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host;} 阅读全文 »
史上最强分布式版本控制系统Git 发表于 2018-08-06 | 分类于 综合 | Git简介Git是目前世界上最强的分布式版本控制系统,没有之一。 Git安装以Ubuntu系统为例:1sudo apt-get install git 配置全局用户名和邮箱:12git config --global user.name "Your Name"git config --global user.email "email@example.com" 阅读全文 »
修改Linux系统的系统时间 发表于 2018-08-06 | 分类于 系统运维 | 使用date命令1sudo date -s "2017-04-20 09:27:07" 改了之后再使用date命令查询时间,发现成功了,但是,大概几分钟之后又恢复成之前的错误时间了。 使用hwclock命令1sudo hwclock --set --date="04/20/17 09:24" 还是同样的问题,几分钟后就恢复了。 阅读全文 »
使用jaudiotagger解析mp3文件 发表于 2018-08-06 | 分类于 Java后台 | 依赖123456789<jaudiotagger.version>2.0.3</jaudiotagger.version>...<dependency> <groupId>org</groupId> <artifactId>jaudiotagger</artifactId> <version>${jaudiotagger.version}</version></dependency> 阅读全文 »
使用jdbc向MySQL中插入时间丢失毫秒 发表于 2018-08-06 | 分类于 数据库 | 1234create table la_trans_monitor( begin_time timestamp(3) default CURRENT_TIMESTAMP(3) not null) 其他和本题无关字段已省略。 阅读全文 »