上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页
摘要: 原配置:location / { rewrite ^/(.*).html$ /$1.html?mode=test last; error_page 404 = @nodejs; }修改后:location / {root /path/to/files;index index.html;#try_fi 阅读全文
posted @ 2020-12-01 09:59 walkersss 阅读(3634) 评论(0) 推荐(0) 编辑
摘要: 1、查找当前目录下所有以.tar结尾的文件然后移动到指定目录:find . -name “*.tar” -exec mv {}./backup/ ; 注解:find –name 主要用于查找某个文件名字,-exec 、xargs可以用来承接前面的结果,然后将要执行的动作,一般跟find在一起用的很多 阅读全文
posted @ 2020-12-01 08:53 walkersss 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题 sed -i 's/\r$//' build.sh 先运行 go-fastdfs 再运行 go-fastdfs-web go-fastdfs 下载https://github.com/sjqzhang/go-fastdfs/ 阅读全文
posted @ 2020-11-23 19:06 walkersss 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 1 建立本地时间服务器cmd regedit 1)启用NTPServer服务,找到如下路径:[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\W32Time\TimeProviders\NtpServer] ,右边找到Enable 设置值为1 2)设 阅读全文
posted @ 2020-11-20 14:18 walkersss 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 关闭或启动linux防火墙后,docker启动容器报错问题解决方式 解决办法:重建docker0网络恢复 1、按照进程名杀死docker进程 pkill docker 2、清空防火墙规则-清空nat表的所有链 iptables -t nat -F 3、查看定义规则的详细信息 iptables -L 阅读全文
posted @ 2020-11-09 18:06 walkersss 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: server { listen 443 ssl; server_name www.xxx.com xxx.com; ssl_certificate keys/xxxx_ssl.pem; ssl_certificate_key keys/xxxx_ssl.key; ssl_session_timeou 阅读全文
posted @ 2020-11-09 18:00 walkersss 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 1、从容器里面拷文件到宿主机 答:在宿主机里面执行以下命令 docker cp 容器名:要拷贝的文件在容器里面的路径 要拷贝到宿主机的相应路径 示例: 假设容器名为testtomcat,要从容器里面拷贝的文件路为:/usr/local/tomcat/webapps/test/js/test.js, 阅读全文
posted @ 2020-11-06 14:32 walkersss 阅读(856) 评论(0) 推荐(0) 编辑
摘要: [root@server81 conf]# vim nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/er 阅读全文
posted @ 2020-11-06 11:15 walkersss 阅读(7069) 评论(0) 推荐(0) 编辑
摘要: 开启远程 SFTP 连接服务: 1、创建用户组 sftpgroupadd sftp 2、创建用户 xinxin02useradd -G sftp -s /sbin/nologin xinxin02 -s 禁止用户ssh登录-G 加入sftp用户组 3、创建密码passwd xinxin02 4、修改 阅读全文
posted @ 2020-11-04 17:43 walkersss 阅读(3668) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 python-pip yum install python-pip 如果在安装 python-pip过程出现如下情况: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mir 阅读全文
posted @ 2020-11-02 19:14 walkersss 阅读(5894) 评论(0) 推荐(1) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页