
linux
文章平均质量分 91
七个包
这个作者很懒,什么都没留下…
展开
-
pritunl 和 JumpServer
1,非常感谢各位大佬的优秀文章从零到一教你部署Pritunl_庸人自扰-优快云博客_pritunlLinux其他教程文章可以访问本人博客https://blog.yangwn.top/index.php/archives.htmlpritunl简介#官方网站https://pritunl.com/#官方文档https://docs.pritunl.com/docs#Github项目地址https://github.com/pritunl/pritunl#客户端下载地址(也可以使用OpenVPN作为客户原创 2021-10-19 17:37:22 · 1705 阅读 · 0 评论 -
centos7 批量杀死进程
1,新建一个文件,比如叫k2,把下面这段代码复制进去,保存#!/bin/bashps -ef |grep $1 |awk '{print $2}'|xargs kill -93,执行 ./k chrome,就会把所有带chrome的进程都杀了4,可以建立一个软连接 ln -s k文件的路径 /bin/k5,就可以这么用了 k chrome,搞定...原创 2020-02-22 17:11:30 · 2158 阅读 · 0 评论 -
linux下使用shell脚本切换到root用户并执行脚本
需要安装expectyum install expect -y#!/usr/bin/expectspawn su rootexpect "Password:"send "这里写root用户的密码\r"send "cd /home/wwwroot/script/\r"send "./cache-face.sh\r"expect eofexit ...原创 2019-11-13 12:17:39 · 11709 阅读 · 0 评论 -
centos nginx https 配置
1,如果想配置一个域名到指定目录咋弄呢?下面这个server { listen 80; server_name 这里换成你的域名,例如baidu.com; set $root_path '/home/wwwroot/tapai_html/'; root $root_path; ...原创 2019-05-28 11:47:07 · 198 阅读 · 0 评论