﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; 编程实践</title>
	<atom:link href="http://help.vps12.com/category/program/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>删除 WPS 云文档图标</title>
		<link>https://help.vps12.com/2261.html</link>
		<comments>https://help.vps12.com/2261.html#comments</comments>
		<pubDate>Fri, 24 Nov 2023 13:35:12 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2261</guid>
		<description><![CDATA[WIN + R 输入 regedit，删除如下项目： 我的电脑侧栏上的： HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace 设备和驱动器中的： HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace 删除里边的子项，就可以了。]]></description>
		<wfw:commentRss>https://help.vps12.com/2261.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>docker-compose搭建nginx+php+mysql</title>
		<link>https://help.vps12.com/1959.html</link>
		<comments>https://help.vps12.com/1959.html#comments</comments>
		<pubDate>Sat, 03 Aug 2019 17:20:15 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1959</guid>
		<description><![CDATA[转自： https://blog.csdn.net/miwumuge/article/details/83386679 安装Docker Compose之前应先确保系统已经安装了Docker 安装Docker Compose 1.下载Docker Compose sudo curl -L “https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose 2.添加可执行权限 sudo chmod +x /usr/local/bin/docker-compose 3.测试 $ docker-compose &#8211;version docker-compose version 1.22.0, build 1719ceb 搭建nginx+php+mysql 系统环境 CentOS minimal 7.2.1511 Docker CE 18.06.1-ce docker镜像版本： php 7.2.11-fpm mysql 8.0 nginx 1.15 构建目录结构 www ├── docker-compose.yml ├── html │ └── index.php ├── [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1959.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu /boot 满的解决方法</title>
		<link>https://help.vps12.com/1931.html</link>
		<comments>https://help.vps12.com/1931.html#comments</comments>
		<pubDate>Fri, 21 Jun 2019 17:05:32 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1931</guid>
		<description><![CDATA[运行一段时间后我们经常会发现提示/boot满或是快满的问题，查了一下网上是提示这样清文件。希望对大家有一定帮助。 造成这一问题的主要原因是因为系统升级的时候会安装不同版本的 kernel，但是实际上使用的往往只有一个。因此，我们只需要把没有使用的 kernel 删除，就可以解决 /boot 空间占满的问题。 sudo apt autoremove &#8211;purge 具体操作 查看当前使用的 kernel uname -r >> Linux 4.10.0-42-generic 查看当前系统已经安装的 kernels dpkg &#8211;list &#8216;linux-image*&#8217; &#124; grep ^ii 删除不需要的 kernel # 需要删除的 kernel 版本号 sudo apt remove linux-image- 删除相关的包 sudo apt autoremove 最后更新以下 kernel 列表 sudo update-grup 接下来，我们在查看以下 /boot 的剩余容量 df -l >> 文件系统 1K-块 已用 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1931.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 一键安装Cacti 1.2.3脚本</title>
		<link>https://help.vps12.com/1915.html</link>
		<comments>https://help.vps12.com/1915.html#comments</comments>
		<pubDate>Sun, 19 May 2019 14:13:17 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[编程实践]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1915</guid>
		<description><![CDATA[?View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1915.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell脚本输出带颜色字体</title>
		<link>https://help.vps12.com/1870.html</link>
		<comments>https://help.vps12.com/1870.html#comments</comments>
		<pubDate>Fri, 14 Dec 2018 07:40:11 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1870</guid>
		<description><![CDATA[经常shell下都有需要使用到特殊标记的提示字符。以下很全，网上找来的。转发一下。 输出特效格式控制： \033[0m 关闭所有属性 \033[1m 设置高亮度 \03[4m 下划线 \033[5m 闪烁 \033[7m 反显 \033[8m 消隐 \033[30m &#8212; \033[37m 设置前景色 \033[40m &#8212; \033[47m 设置背景色 光标位置等的格式控制： \033[nA 光标上移n行 \03[nB 光标下移n行 \033[nC 光标右移n行 \033[nD 光标左移n行 \033[y;xH设置光标位置 \033[2J 清屏 \033[K 清除从光标到行尾的内容 \033[s 保存光标位置 \033[u 恢复光标位置 \033[?25l 隐藏光标 \33[?25h 显示光标 整理： 编码 颜色/动作 　　0 重新设置属性到缺省设置 　　1 设置粗体 　　2 设置一半亮度(模拟彩色显示器的颜色) 　　4 设置下划线(模拟彩色显示器的颜色) [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1870.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python 网络编程 udp示例(转)</title>
		<link>https://help.vps12.com/1864.html</link>
		<comments>https://help.vps12.com/1864.html#comments</comments>
		<pubDate>Sat, 01 Dec 2018 11:28:49 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1864</guid>
		<description><![CDATA[以下对于测试服务器的udp端口及是否协议畅通和可以使用，是很好的办法。 由于UDP是无连接的，与TCP的区别在服务器端表现为，无需监听函数listen()对客户端的连接进行监听； 在客户端的表现为客户端的socket无需与服务器建立连接就能够进行数据的发送与接收，即无需connect()函数。 服务器端代码，udpServer.py: ?View Code PYTHON1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 from socket import * from time import ctime &#160; HOST = '' PORT = 20123 BUFSIZ = 128 ADDR = &#40;HOST, PORT&#41; &#160; #创建一个服务器端UDP套接字 udpServer = socket&#40;AF_INET, [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1864.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VC6 SDK 安装支持VC6的最新SDK的资源与方法详解（适合和我一样的菜鸟）</title>
		<link>https://help.vps12.com/1779.html</link>
		<comments>https://help.vps12.com/1779.html#comments</comments>
		<pubDate>Sun, 11 Feb 2018 16:35:46 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[vc++]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1779</guid>
		<description><![CDATA[今天我开始学习王艳平老师的《windows网络与通信程序设计》那本书，里面有一小节讲的是如何获取MAC地址，代码中所需的头文件是VC6所没有的， 需要安装新的SDK。于是就开始从网上寻找资源并且安装，下面是安装流程与资源下载的地址： 1、下载资源 首先将以下资源下载到一个文件夹中（复制地址到迅雷中新建任务即可）。 http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.1.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.2.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.3.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.4.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.5.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.6.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.7.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.8.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.9.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.10.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.11.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.12.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.13.cab http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bat http://download.microsoft.com/download/platformsdk/ sdk/update/win98mexp/en-us/3790.0/FULL/Extract.exe 2、打开命令行（cmd）移动到该文件夹下并运行批处理文件解压文件 如下载文件夹为d:\temp，则在命令行中先输入d:（回车），再输入temp：（回车）。 之后运行PSDK-FULL.bat d:\sdk（回车），d:\sdk为放解压文件的文件夹。 3、退出命令行到d:\sdk中运行setup.exe。之后会弹出一个安装WEB页。 若提示Versions未定义，打开setup目录，安装CoreSDK-x86.msi等文件即可。 4、若弹出的WEB页只有一段话大意为需要你安装IE，那么首先确认安装了IE，并把它设 置为默认浏览器。之后若安装的是IE8那么还不能进行网页安装，必须取消&#124;Internet 选项 -》 高级 -》启用内存保护帮助减少联机攻击&#124;的选项之后即可出现安装向导。 5、安装完后，配置VC6 手工配置vc6的搜索目录,打开vc6,菜单tools-options-directories。 增加以下路径 executable files 你的platform安装路径\bin 你的platform安装路径\bin\winnt include file [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1779.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux scp和rsyc限速传输</title>
		<link>https://help.vps12.com/1712.html</link>
		<comments>https://help.vps12.com/1712.html#comments</comments>
		<pubDate>Sat, 06 May 2017 18:59:36 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1712</guid>
		<description><![CDATA[linux scp和rsyc限速传输 一、scp限速1M 　　scp -l 1000 vps12.com.tar.gz root@192.168.1.2:/root 　　#此时的传输速率就是1M/8＝100KB左右！经测试，如果数值在3000大约跑近4mbps。 二、rsync是（限制为 100k Bytes/s）： 　　rsync -auvzP&#8211;bwlimit=100 本地的文件 远程的文件 　　参数说明： 　　v：详细提示 　　a：以archive模式操作，复制目录、符号连接，等价于 -rlptgoD 。 　　z：压缩 　　u：只进行更新，防止本地新文件被重写，注意两者机器的时钟的同时 　　P：是综合了&#8211;partial &#8211;progress两个参数， 　　所以此时的rsync支持了断点续传 机房之间传文件一般都担心带宽占用太多，特别是在共用带宽的情况下。常用的两个软件都可以限速： scp可以加上 -l 参数： 引用 -l limit Limits the used bandwidth, specified in Kbit/s. rsync可以加上 &#8211;bwlimit 参数 引用 -i, &#8211;itemize-changes output a change-summary for all updates &#8211;log-format=FORMAT output filenames [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1712.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>出现Visual Studio Just-In-Time Debugger的解决方法</title>
		<link>https://help.vps12.com/1621.html</link>
		<comments>https://help.vps12.com/1621.html#comments</comments>
		<pubDate>Mon, 01 Aug 2016 03:54:19 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1621</guid>
		<description><![CDATA[经常弹出“Visual Studio Just-In-Time Debugger” 对话框，内容是：“An unhanled win32 exception occurred in explorer.exe[2548]. just-in-time debuenabled. in visual studio，just-in-debugging can be enabled from tools/options/debugging/just-in-time.‘check the documentation index for ‘just-in-timedebugging，errors’for more information无论你选哪一项或直接关闭都会导致程序关闭。 　　遇到这种问题首先肯定是上网搜索各种解决方法，但好像只有一种方法，点选[开始]>[执行]，在“开启”对话框中键入以下指令： 　　drwtsn32 -i 　　点选[确定]，这个指令将会把Dr.Watson设定成预设的Debugger工具，这样就不会让您每次都会跳出这样的错误讯息了。 　　装完之后这个问题就没有再出现，不过网上也有人找不到drwtsn32这个程序。 　　这里提高一下某位高手的解决方法，虽然没有试过，但是可以试试！！ 　　解决方法在CSDN博客中：http://blog.csdn.net/bright60/archive/2006/08/24/1111592.aspx 　　出现这种情况，往往是因为原先安装有VS，后来因某些原因（比如：卸载）导致VS无法使用！！ 　　当系统中的有些软件出现错误时，会自动调用vs进行调试，但因为VS无法使用，就出现了visual studio just-in-time debugger窗口。 　　此方法主要就是删除指定的注册表 32位系统处理方法：use the registry editor to delete the following registry keys： 　　HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger 　　HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger 　　64位系统处理方法：On [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1621.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>浅析基于 NTP 的反射和放大攻击</title>
		<link>https://help.vps12.com/1523.html</link>
		<comments>https://help.vps12.com/1523.html#comments</comments>
		<pubDate>Thu, 03 Mar 2016 05:41:45 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[安全]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1523</guid>
		<description><![CDATA[最近一段时间 DDoS 攻击事件让基于 NTP 的 DDoS 攻击变得很火热。 1.什么是 NTP NTP 是网络时间协议（Network Time Protocol）的简称，干嘛用的呢？就是通过网络协议使计算机之前的时间同步化。 2.NTP 反射和放大攻击 那什么是 NTP 反射和放大攻击呢？如果听过 DNS 反射和放大攻击的话应该就会对这个比较容易理解了，协议不同，效果一样。 我们先来说说放射和放大攻击： 无论是基于 DNS 还是基于 NTP，其最终都是基于 UDP 协议的。在 UDP 协议中正常情况下客户端发送请求包到服务端，服务端返回响应包到客户端，但是 UDP 协议是面向无连接的，所以客户端发送请求包的源 IP 很容易进行伪造，当把源 IP 修改为受害者的 IP，最终服务端返回的响应包就会返回到受害者的 IP。这就形成了一次反射攻击。 放大攻击呢就是一次小的请求包最终会收到一个或者多个多于请求包许多倍的响应包，这样就达到了四两拨千斤的效果。 那我们接着来看什么是 NTP 的反射和放大攻击，NTP 包含一个 monlist 功能，也被成为 MON_GETLIST，主要用于监控 NTP 服务器，NTP 服务器响应 monlist 后就会返回与 NTP 服务器进行过时间同步的最后 600 个客户端的 IP，响应包按照每 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1523.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
