linux
文章平均质量分 77
不知春夏,不知秋冬
不知春夏,不知秋冬。
展开
-
coding构建部署Docker 容器的springboot项目
Coding持续集成实现远程部署运行项目:Java + Spring + Docker原理:coding通过ssh私钥凭证访问服务器,执行项目的脚本使用git下拉最新代码并打包运行。一.Git免登录下拉Coding代码linux中免登录下拉Coding代码:https://blog.csdn.net/qq_40286424/article/details/118359130附上:Docker文件FROM openjdk:8-jdk-alpineRUN echo "Asia/Shanghai"原创 2021-07-01 13:36:39 · 1410 阅读 · 2 评论 -
linux中免登录下拉Coding代码
官方教程:https://help.coding.net/docs/project-settings/features/ssh.html1.服务器生成公钥使用指令生成公钥ssh-keygen -m PEM -t rsa -b 4096 -C "your.email@example.com"Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Enter pa转载 2021-06-30 13:42:43 · 347 阅读 · 0 评论 -
在linux中关于python的定时任务
在linux中定时运行python文件如:add.py1.创建vim add.sh(注意绝对路径)#!/bin/bashpython /home/MailList/add.py2.赋予add.sh权限chmod +x add.shps:查看权限 ls -l3.在crontab中设置定时任务crontab -e 进入编辑0 3 * * * /home/MailList/add.sh...原创 2018-12-27 15:44:08 · 447 阅读 · 0 评论 -
在python中获取当前时间并转换为时间戳
# 引入模块import timefrom datetime import datetime代码:# 获取当前时间times=datetime.now().strftime('%Y-%m-%d %H:%M:%S')print times# 转为时间数组timeArray = time.strptime(times, "%Y-%m-%d %H:%M:%S")# 转为时间戳time...转载 2018-12-28 16:49:40 · 6952 阅读 · 0 评论 -
在linux中安装face_recognition
Ubuntu安装face_recognition需要先安装dlib1.安装dlib的依赖sudo apt-get install build-essential cmakesudo apt-get install libgtk-3-devsudo apt-get install libboost-all-dev安装 dlib复制代码sudo apt-get install li...转载 2019-01-07 17:42:16 · 2277 阅读 · 0 评论 -
Debian 系统如何配置 iptables
iptables在Linux发行版本如Centos、Debian、Ubuntu、Redhat等的配置内容基本一致,但是配置方式有所不同。由于工作日常用的是Centos 6.x,它的配置较简单。下面对Debian上配置iptables做一个说明。root@localhost:~# iptables -LChain INPUT (policy ACCEPT)target prot opt...转载 2019-09-06 13:37:12 · 1983 阅读 · 0 评论