后台运行命令:nohup nohup命令:nohup是不挂断的意思( no hang up)。如果你正在运行一个进程,而且你觉得在退出帐户时该进程还不会结束,那么可以使用nohup命令。该命令忽略所有挂(SIGHUP)信号,可以在你退出帐户/关闭终端之后继续运行相应的进程。 该命令的一般格式为: nohup yourcommand &# yourcommand:启动...
日期:2022-04-18 浏览:1105次 评论: 0 阅读全文
Centos7.4 安装nginx和php-fpm: 1. 安装nginx: rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpmyum install -y nginx systemctl restart nginx   2. 配置php-fpm 项目目录在/root/html下面,需要更改nginx默认目录 查看nginx配置文件: nginx -t serve...
日期:2022-04-18 浏览:1198次 评论: 0 阅读全文
Centos7.4 安装nginx和php-fpm: 1. 安装nginx: rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpmyum install -y nginx systemctl restart nginx   2. 配置php-fpm 项目目录在/root/html下面,需要更改nginx默认目录 查看nginx配置文件: nginx -t serve...
日期:2022-04-18 浏览:1055次 评论: 0 阅读全文
nohup 日志文件输出 nohup java -jar xxx.jar >> nohup`date +%Y-%m-%d`.out 2>&1 & Date 格式设置 format:输出的时间格式。 format可用的转义序列如下: %%      百分号 %a      当地缩写...
日期:2022-04-18 浏览:1269次 评论: 0 阅读全文
一、概述: 我之前有一篇文章写了Nginx作为web服务器的http与https的初探 作为nginx基础介绍,作为web服务器使用;今天要介绍的是nginx作为代理服务器和七层调度负载均衡的入门介绍;实现内容:通过nginx代理后端phpadmin网站,并通过nginx的代理达到动静内容分离;在代理上做缓存; 实验环境:proxy:Centos7 模拟外网ip:172...
日期:2022-04-03 浏览:1097次 评论: 0 阅读全文
0.what is gitea 一款极易搭建的自助Git服务。 运行非常快速,安装和使用体验良好的自建 Git 服务 1.下载镜像 #直接拉取最新版本,需要其它版本自己去https://hub.docker.com/找 docker pull gitea/gitea 2.运行镜像 》》》注意防火墙或安全组中放开用到的端口(例如10022和10080) 官网启动方式 docker&...
日期:2022-04-02 浏览:1161次 评论: 0 阅读全文
(1)0/2 * * * * ? 表示每2秒 执行任务 (1)0 0/2 * * * ? 表示每2分钟 执行任务 (1)0 0 2 1 * ? 表示在每月的1日的凌晨2点调整任务 (2)0 15 10 ? * MON-FRI 表示周一到周五每天上午10:15执行作业 (3)0 15 10 ? 6L 2002-2006 表示2002-2006年的每个月的最后一个星期五上午10:15执行作 (4)0 0 10,14,16 * * ? ...
日期:2022-03-21 浏览:1204次 评论: 0 阅读全文
安装crontab: yum install crontabs service crond start //启动服务 service crond stop //关闭服务 service crond restart //重启服务 service crond reload //重新载入配置 查看crontab服务状态:service crond status 手动启...
日期:2022-03-20 浏览:1260次 评论: 0 阅读全文
安装crontab:yum install crontabs 说明:/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart //重启服务/sbin/service crond reload //重新载入配置   查看crontab服务状态:service crond status 手动启动crontab服务:service crond start 查看crontab服务是...
日期:2022-03-20 浏览:1121次 评论: 0 阅读全文
安装scp:yum -y install openssh-clients 复制文件(本地>>远程):scp test.txt  root@192.168.0.2:/home/Lee/test/ 复制文件(远程>>远程):scp  root@192.168.0.2:/home/Lee/test/test.txt /home/Lee/test/ 复制目录(本地>>远程):scp -r test/  root@192.168.0.2:/home/Lee/te...
日期:2022-03-19 浏览:1144次 评论: 0 阅读全文