![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
ljwy1234
111
展开
-
获取程序进程并杀死该进程集
ps aux|grep s1|awk '{print $2}'|xargs kill -9原创 2018-07-10 15:58:11 · 460 阅读 · 0 评论 -
linux 判断上一条命令是否指令成功
echo $? 如果等于0 就是TM的成功 否则就是失败原创 2018-09-12 16:33:58 · 3012 阅读 · 0 评论 -
ubuntu16.04 安装搜狗输入法
https://pinyin.sogou.com/linux/ 点击后 下载 然后安装过 vmtools 直接拖拽进去 然后执行 sudo apt-get install -f 再然后点击 点击语言支持后 会弹出什么安装更新 直接点击更新什么的 按照提示来 点击后 回到虚拟机中 再回到你上传的搜狗安装包的文件夹里 双击安装包 直接安装就可以了 装完后记得重新启动计算...原创 2018-09-12 17:16:43 · 284 阅读 · 0 评论 -
ubuntu16.04 虚拟机装机后常用操作
开启防火墙 ufw enable 关闭防火墙 ufw disable 一、查看是否安装了ssh服务 ? 1 apt-cache policy openssh-client openssh-server ubuntu默认安装了openssh-client,openssh-server需要手动安装 二、安装ssh服务 ? 1 apt-get install openssh-serve...原创 2018-09-13 11:41:51 · 348 阅读 · 0 评论 -
ubuntu 16.04 安装samba
sudo apt-get install samba -y etc 下就多了 samba sudo vim smb.conf [company] comment=share file path=/home/abc/smshare public=yes writable=yes ;write list = +staff // 不要账号密码啥的 这个可以忽略 sudo /etc...原创 2018-09-27 17:25:56 · 1171 阅读 · 0 评论 -
rsync+inotify 文件同步
服务器A 192.168.0.203 服务器B 192.168.0.204 这里假设B 服务器 为 A的备份服务器 首先 我们在A 服务器 和B 服务器 都装rsync 和 inoifty B 服务器 rsync 服务端 开启 rsync rsync --daemon --config=/etc/rsyncd.conf 配置文件如下 rsyncd.conf ...原创 2018-10-23 12:50:07 · 349 阅读 · 0 评论