serv00 恢复如初

1、SSH客户端 清除虚拟机进程

方法一 使用 ps aux:

ps aux

方法二 使用 top:

top

1.2、清除指定账户的所有进程

pkill -kill -u ${username}

比如: pkill -kill -u defeisoft

2、删除文件夹及文件夹

2.1 更改非隐藏目录的权限

chmod -R 755 ~/* 

2.2 更改隐藏目录的权限

chmod -R 755 ~/.*

3、删除文件夹及文件

3.1 删除非隐藏文件夹及其文件

rm -rf ~/*

3.2 删除隐藏文件夹及其文件

rm -rf ~/.* 

添加文件夹

domainsmailrepo

domains 文件夹下建立域名文件夹:

帐号.serv00.net例如yangleiies.serv00.net

域名文件夹下建立文件夹

logs建立文件夹access
public_html建立文件index.html

双击 index.html 文件修改

<!DOCTYPE html>  
<html>  
    <head>  
        <meta charset=utf-8 />  
        <title>defei2024.serv00.net - hosted on Serv00.com</title>  
        <style type="text/css">  
            * {  
                margin: 0;  
                padding: 0;  
                border: 0;  
            }  
  
            body {  
                background-image: linear-gradient(137deg, #2E457B 0%, #237431 100%) !important;  
                background-attachment: fixed;  
                color: #333;  
                font-family: Arial, Verdana, Tahoma;  
                font-size: 13px;  
            }  
  
            #main {  
                background: #FFF;  
                box-shadow: 0 0 40px #00275A;  
                margin-top: 65px;  
                padding-top: 20px;  
                padding-bottom: 20px;  
                width: 100%;  
            }  
  
            #mainwrapper {  
                display: table;  
                text-align: center;  
                margin: 0 auto;  
            }  
  
            h1 {  
                color: #EE6628;  
                font-size: 44px;  
                font-weight: normal;  
                text-shadow: 1px 1px 2px #A7A7A7;  
            }  
  
            h2 {  
                color: #385792;  
                font-weight: normal;  
                font-size: 25px;  
                text-shadow: 1px 1px 2px #D4D4D4;  
            }  
  
            ul {  
                text-align: left;  
                margin-top: 20px;  
            }  
  
            p {  
                margin-top: 20px;  
                color: #888;  
            }  
  
            a {  
                color: #4D73BB;  
                text-decoration: none;  
            }  
  
            a:hover, a:focus {  
                text-decoration: underline;  
            }  
        </style>  
    </head>  
      
    <body>  
  
        <div id="main">  
            <div id="mainwrapper">  
                <h1>defei2024.serv00.net</h1>  
                <h2>Page successfully added</h2>  
  
                <ul>  
                    <li>The page is in the directory <b>/usr/home/defei2024/domains/defei2024.serv00.net/public_html</b></li>  
                    <li>This file can be deleted (index.html),</li>  
                    <li>Files can be put on the server using the <b>FTP</b>, <b>FTPS</b> or <b>SFTP</b> protocols.</li>  
                </ul>  
  
                <p>If you have any questions <a href="https://www.serv00.com/contact">contact us</a>.</p>  
            </div>  
        </div>  
    </body>  
      
</html>

点击 Zapisz 保存