随笔分类 -  服务器

摘要:1.首先保证你已经安装Git2.把你的ssh_keygen.exe的安装路径添加到系统环境变量里面 阅读全文
posted @ 2021-05-15 21:09 zhang_you_wu 阅读(388) 评论(0) 推荐(0)
摘要:mv b.txt c.bak //将文件 b.txt 重命名为 c.bak mv -i 456.txt /home/hk/cpdir/copy/abc //将 456.txt 移动到 /home/hk/cpdir/copy/ 并取名为 abc 若已存在文件 abc则会询问是否覆盖。 mv -f 45 阅读全文
posted @ 2021-05-14 10:52 zhang_you_wu 阅读(707) 评论(0) 推荐(0)
摘要:一.配置秘钥 1.在电脑cmd中输入命令 ssh-keygen 2.输入 dir 查看目录 3.进入.ssh目录 cd .ssh 4.输入dir查看目录 dir 5.上传公钥到服务器,(yes,enter要密码) scp 139.196.242.111 scp id_rsa.pub root@139 阅读全文
posted @ 2021-05-14 10:25 zhang_you_wu 阅读(337) 评论(0) 推荐(0)
摘要:后台启动文件nohup /web/a/sh/crontab.sh & 查看端口 ps -aux | grep crontab后台启动php文件php start.php start -d crontab.sh文件 #!/bin/bash step=1 #间隔的秒数,不能大于60 for (( i = 阅读全文
posted @ 2020-04-28 13:20 zhang_you_wu 阅读(9316) 评论(0) 推荐(0)
摘要:1.下载tp框架,版本5.1.35 ,下载think-swoole,版本2.0.17 composer require topthink/think-swoole=2.0.* 2.在config下书写swoole.php <?php use think\facade\Env; // + // | S 阅读全文
posted @ 2020-04-09 00:08 zhang_you_wu 阅读(3922) 评论(0) 推荐(0)
摘要:1.下载redis https://redis.io/download 2.上传至服务器并解压后进入目录make tar xzf redis-5.0.8.tar.gz cd redis-5.0.8 make 3.进入src目录make install cd src make install ———— 阅读全文
posted @ 2020-04-07 11:35 zhang_you_wu 阅读(199) 评论(0) 推荐(0)
摘要:1.如图所示错误 查看版本 4.3的版本移除所有异步模块, 分离异步扩展到 async-ext 移除的异步模块如下: 从4.3版本开始需要额外安装swoole-async扩展才能使用异步模块 阅读全文
posted @ 2020-04-03 17:35 zhang_you_wu 阅读(322) 评论(0) 推荐(0)
摘要:1.提交全部改动 git add -A 2.提交到自己的分支 git commit -m '注释' 3.提交到主分支 git push -u origin 阅读全文
posted @ 2020-04-01 09:48 zhang_you_wu 阅读(186) 评论(0) 推荐(0)
摘要:解决办法:出现该情况是由于c++编译器的相关package没有安装,在终端上执行: # yum install glibc-headers # yum install gcc-c++ 阅读全文
posted @ 2020-04-01 00:23 zhang_you_wu 阅读(851) 评论(0) 推荐(0)
摘要:1.下载swoole; cd /usr/local/downloads/git clone https://gitee.com/swoole/swoole.git 2.编译安装 先 yum install autoconf cd swoole//usr/local/php/bin/phpize ./ 阅读全文
posted @ 2020-04-01 00:03 zhang_you_wu 阅读(686) 评论(0) 推荐(0)
摘要:# /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc # It's NOT a good idea to cha 阅读全文
posted @ 2020-03-31 11:52 zhang_you_wu 阅读(2482) 评论(0) 推荐(0)
摘要:yum install sqlite-devel 阅读全文
posted @ 2020-03-31 11:22 zhang_you_wu 阅读(12958) 评论(0) 推荐(0)
摘要:-bash:ll:找不到命令 在通过 xshell5 连接到自建的Debian服务器时,ll 命令无法识别; 原因: ll 并不是Linux 下一个基本的命令,它实际上是ls -l 的一个别名,默认不支持命令ll ,必须用ls-l; 若想使用此命令,可做如下操作: 1.回到根目录/ 家目录,即中图产 阅读全文
posted @ 2020-03-31 11:00 zhang_you_wu 阅读(1674) 评论(0) 推荐(0)
摘要:1.下载php 2.解压php #tar -zxvf php-7.4.4.tar.gz 3、编译安装 # yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2- 阅读全文
posted @ 2020-03-31 08:56 zhang_you_wu 阅读(729) 评论(0) 推荐(0)
摘要:启动mysql时报错: 因为没有路径也没有权限,所以创建此路径并授权给mysql用户 mkdir /var/log/mariadb mkdir /var/log/mariadb 阅读全文
posted @ 2020-03-30 21:22 zhang_you_wu 阅读(7232) 评论(0) 推荐(0)