- 博客(5)
- 收藏
- 关注
原创 NginxWeb时间错误
一、将服务器的时间和Nginx统一 cp /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime 二、确保Nginx开启了时间同步机制 将/usr/local/nginx/conf/nginx.conf里的autoindex_localtime设置为on 即autoindex_localtime on; 三、shell命令行下输入systemctl restart nginx重启Nginx。 ...
2022-05-27 16:18:01
1400
原创 linux下常用命令汇总
tar打包命令 tar -zcvf filename.tar.gz filename tar解压命令 tar -zxvf filename.tar.gz
2022-05-16 10:31:11
272
转载 cron命令
(cron = “* * * * * *”) cron表达式格式: {秒数} {分钟} {小时} {日期} {月份} {星期} {年份(可为空)} 例 “0 0 12 ? * WED” 在每星期三下午12:00 执行(年份通常 省略) 先了解每个位置代表的含义,在了解每个位置允许的范围,以及一些特殊写法,还有常用的案例,足够你掌握cron表达式 一:每个字段的允许值 字段 允许值 允许的特殊字符 秒 0-59 , - * / 分 0-59 , - * / 小时 0-23 , - * / 日期 1-31 ,
2022-05-10 09:25:03
2203
原创 Linux文件目录链接方式
Linux文件目录链接方式一、什么是文件目录链接?二、操作命令1.指定目录名称2.未指定目录名称总结 一、什么是文件目录链接? 示例:/home目录数据存满后,想继续在home目录下生成文件,但是没有空间了,此时可以链接到有空间的其他目录,比如/home1。 二、操作命令 1.指定目录名称 代码如下(示例): alice@~/file $ pwd /home/alice/file alice@~/file $ ls alicefile1 alicefile2 alicefile3 alice@~/file
2022-04-24 17:19:39
5029
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人