列出 5-7 行
nl /etc/passwd | sed -n ‘5,7p’
-n 不在处理前打印,搜索 root,/p 打印
nl /etc/passwd | sed ‘/root/p’
举例:(假设我们有一文件名为 ab)
删除某行
sed ‘1d’ ab ……继续阅读 »
2个月前 (11-27) 53浏览
3个赞
特别鸣谢
感谢海文互知的开源项目:https://github.com/haiwen/seafile-server-installer-cn
创建存储池
关于 ssm(system-storage-manager)的使用请参考:https://www.linuxprobe.com/centos-rhel-7-ssm-lvm.html
yum -y insta……继续阅读 »
2个月前 (11-26) 203浏览
2个赞
注意事项
安装 Win32-OpenSSH 之前,建议检查一下 PowerShell 版本
$PSVersionTable
或者
get-host
PowerShell5.1 以上版本依赖.NET4.0 以上运行库https://dotnet.microsoft.com/download
下载最新版PowerShellhttps://github.c……继续阅读 »
2个月前 (11-20) 80浏览
0个赞
前言
ServerStatus 中文版是一个酷炫高逼格的云探针、云监控、服务器云监控、多服务器探针~。
项目地址:https://github.com/cppla/ServerStatus
服务端部署
一、安装运行环境
yum /y install gcc-c++ git
二、生成服务端程序
cd /usr/local/
git clone https……继续阅读 »
2个月前 (11-19) 70浏览
1个赞
介绍
CloudCone 是一家美国稳定的老牌主机商,主要提供洛杉矶VPS和独服,其VPS基于 KVM,部分地区线路为洛杉矶 CN2 GIA(动态路由),提供免费的 DDOS 防护,特色是按小时计费,可随时删除、重建。加上这次双 11,超低折扣价,性价比那叫一个绝。
购买说明
注意需要先注册 https://cloudcone.com.cn账号,然后后台充值……继续阅读 »
2个月前 (11-09) 99浏览
2个赞