Linux
Linux 中遇到的各种 problem 及解决办法
花落十里不如你
这个作者很懒,什么都没留下…
展开
-
Linux crontab 定时每个月最后一天执行任务
修改系统日期: date -s "2020-11-30 22:59:55"编辑 crontab crontab -e写入代码: 59 23 28-31 * * [ `date -d tomorrow +\%e` -eq 1 ] && touch /tmp/kris.txt >> /dev/null 2>&1保存退出!说明:修改日期只会执行一次,如果你想修改多次日期,执行多次,那么除了第一次不用重启 crond 服务,第二次以及.原创 2020-12-02 14:40:19 · 3442 阅读 · 1 评论 -
CentOS 7.7 安装 NGINX 步骤
去官网获取最新版本链接: http://nginx.org/en/download.html使用 wget 下载: wget http://nginx.org/download/nginx-1.18.0.tar.gz解压: tar -zxvf nginx-1.18.0.tar.gz编译安装(1) ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path.原创 2020-09-03 11:54:13 · 142 阅读 · 0 评论 -
Linux 中安装并使用 Nodejs
去官网下载和自己系统匹配的文件: 英文网址:https://nodejs.org/en/download/ 中文网址:http://nodejs.cn/download/选择你服务器对应的包下载在服务器中执行以下命令:wget https://npm.taobao.org/mirrors/node/v12.16.3/node-v12.16.3-linux-x64.tar.xz下载完后,解压:tar -xvJf node-v12.16.3-linux-x64.tar.xz如果此时原创 2020-05-20 14:56:37 · 335 阅读 · 0 评论 -
Linux 下设置 php 开机自动启动
Linux(CentOS)下设置php-fpm开机自动启动vim 此文件vim /etc/init.d/php-fpm加入以下的脚本:#!/bin/sh # chkconfig: 2345 15 95# description: PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implement...转载 2020-01-09 14:48:17 · 1274 阅读 · 0 评论 -
Linux git pull or git push or git clone 总是需要输入账号和密码
第一步: 进入家目录:cd ~第二步:输入以下指令:git config --global credential.helper store第三步:执行完后,打开 .gitconfig:vim .gitconfig发现文件中,会增加图中所示代码:此时进入到项目中,使用 git pull or git push 提示需要输入账号和密码,之后就不用再输入账号和密码啦!!...原创 2020-01-10 14:09:03 · 512 阅读 · 0 评论