<?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>腾讯云 &#8211; 科技改变生活-雨落星辰</title>
	<atom:link href="https://p1e.cn/html/tag/%E8%85%BE%E8%AE%AF%E4%BA%91/feed" rel="self" type="application/rss+xml" />
	<link>https://p1e.cn</link>
	<description>所有的伟大,都源于一个勇敢的开始</description>
	<lastBuildDate>Wed, 17 Aug 2022 11:26:07 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>腾讯云轻量服务器 DD安装Debian11</title>
		<link>https://p1e.cn/html/3209.html</link>
					<comments>https://p1e.cn/html/3209.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Wed, 17 Aug 2022 11:21:46 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[debian11]]></category>
		<category><![CDATA[腾讯云]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=3209</guid>

					<description><![CDATA[由于腾讯云自带的一些组件，会阻止我们DD安装操作系统（安装过程会报错，无法正确写入进磁盘），所以在DD安装操作系统前，必须要禁用、删除掉这些组件 systemctl stop tat_agent systemctl disable tat_agent rm -rf /etc/systemd/system/tat_agent.service rm -fr /usr/local/qcloud ps -A &#124; grep agent # 检查看是否还有腾讯云组件 # kill 这个进程 所有腾讯云组件都删除后，就可以DD安]]></description>
										<content:encoded><![CDATA[<p>由于腾讯云自带的一些组件，会阻止我们DD安装操作系统（安装过程会报错，无法正确写入进磁盘），所以在DD安装操作系统前，必须要禁用、删除掉这些组件</p>
<pre>systemctl stop tat_agent
systemctl disable tat_agent
rm -rf /etc/systemd/system/tat_agent.service
rm -fr /usr/local/qcloud 
 ps -A | grep agent
# 检查看是否还有腾讯云组件
# kill 这个进程 
</pre>
<p>所有腾讯云组件都删除后，就可以DD安装Linux/Windows了</p>
<pre>wget --no-check-certificate -O AutoReinstall.sh https://p1e.cn/html/shell/reinstall/AutoReinstall.sh &amp;&amp; bash AutoReinstall.sh
</pre>
<div class="hljs-control-btn hljs-control-fullscreen">大概10分钟后（依你VPS的性能），全新的Debian11就安装完成了</div>
<p>之后就可以ssh进你的VPS进行操作了（记得更改SSH端口，并关闭密码登录）</p>
<pre>账号：root
默认密码：Pwd@Linux
</pre>
<p>本来挺简单事，被腾讯云自带的组件恶心的够呛。网络上关于腾讯云盾的删除操作都是过时的，腾讯云自带的镜像应该都不含有删除脚本，所有目前的唯一的办法应该就是删除腾讯云组件后，杀死相关进程，之后再进行DD安装系统</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/3209.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>使用腾讯云对象存储COS 快速DDwindows系统</title>
		<link>https://p1e.cn/html/2756.html</link>
					<comments>https://p1e.cn/html/2756.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Thu, 11 Mar 2021 01:49:43 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[腾讯云]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=2756</guid>

					<description><![CDATA[1.首先登录腾讯云，然后在产品列表里选择对象存储 2.创建一个与你服务器所在区域相同的存储桶 3.创建过程略过，下一步选择自己需要的系统文件，下载到本地https://p1e.cn/html/disk/windows/ 4.把下载好的系统文件上传到COS里 5.点击文件后面的详情，获取镜像的下载地址 6.打开网页https://p1e.cn/html/734.html，复制手动安装脚本，然后粘帖到Xshell运行 7.运行以下命令，其中%URL%就是你在第五步复制的系统链接 bash Reinstall.sh -D]]></description>
										<content:encoded><![CDATA[<p>1.首先登录<a href="https://p1e.cn/go/tengxunyun">腾讯云</a>，然后在产品列表里选择对象存储</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2757" src="https://i.p1e.cn/2021/03/1615426122-16154261061.png" alt="" width="776" height="572" /></p>
<p>2.创建一个与你服务器<span style="color: #ff0000;">所在区域相同</span>的存储桶</p>
<p><img decoding="async" class="alignnone size-full wp-image-2758" src="https://i.p1e.cn/2021/03/1615426245-16154262031.png" alt="" width="875" height="428" /></p>
<p>3.创建过程略过，下一步选择自己需要的系统文件，下载到本地https://p1e.cn/html/disk/windows/</p>
<p><img decoding="async" class="alignnone size-full wp-image-2759" src="https://i.p1e.cn/2021/03/1615426670-20210311093731.png" alt="" width="1268" height="525" /></p>
<p>4.把下载好的系统文件上传到COS里</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2760" src="https://i.p1e.cn/2021/03/1615426755-20210311093848.png" alt="" width="869" height="611" /></p>
<p>5.点击文件后面的详情，获取镜像的下载地址</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2761" src="https://i.p1e.cn/2021/03/1615426905-20210311093731.png" alt="" width="869" height="531" /> <img loading="lazy" decoding="async" class="alignnone size-full wp-image-2762" src="https://i.p1e.cn/2021/03/1615426912-QQ20210311094106.png" alt="" width="776" height="451" /></p>
<p>6.打开网页https://p1e.cn/html/734.html，复制手动安装脚本，然后粘帖到Xshell运行</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2763" src="https://i.p1e.cn/2021/03/1615427259-QQ20210311094625.png" alt="" width="800" height="155" /></p>
<p>7.运行以下命令，其中%URL%就是你在第五步复制的系统链接</p>
<pre>bash Reinstall.sh -DD "%URL%"
</pre>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/2756.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>腾讯云轻量升级后,磁盘扩容</title>
		<link>https://p1e.cn/html/2498.html</link>
					<comments>https://p1e.cn/html/2498.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Mon, 08 Feb 2021 01:28:45 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[磁盘挂载]]></category>
		<category><![CDATA[腾讯云]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=2498</guid>

					<description><![CDATA[今天早上把雨辰的一台腾讯云香港轻量升级到了2H4G，但是升级完了硬盘挂载的容量却没有变，有近30G的容量需要挂在到/目录。 二.首先我们要把多的30G新建分区 2.1 执行fdisk -l，看到最大分区为/dev/vda3，说明新创建的分区将会是vda4(在后面的步骤会进行选择) 2.2 输入fdisk /dev/vda 2.2.1命令行提示下输入【m】 2.2.2输入命令【n】添加新分区。 2.2.3输入命令【p】创建主分区。 2.2.4输入【回车】，选择默认 2.2.5输入【回车】，选择默认 2.2.6输入【w]]></description>
										<content:encoded><![CDATA[<p>今天早上把雨辰的一台腾讯云香港轻量升级到了2H4G，但是升级完了硬盘挂载的容量却没有变，有近30G的容量需要挂在到/目录。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2512" src="https://i.p1e.cn/2021/02/1612748700-16127486851.png" alt="" width="687" height="257" /></p>
<p><strong>二.首先我们要把多的30G新建分区</strong></p>
<p>2.1 执行<code>fdisk -l</code>，看到最大分区为/dev/vda3，说明新创建的分区将会是vda4(在后面的步骤会进行选择)</p>
<p>2.2 输入<code>fdisk /dev/vda</code></p>
<p>2.2.1命令行提示下输入【m】</p>
<p>2.2.2输入命令【n】添加新分区。</p>
<p>2.2.3输入命令【p】创建主分区。</p>
<p>2.2.4输入【回车】，选择默认</p>
<p>2.2.5输入【回车】，选择默认</p>
<p>2.2.6输入【w】，保持修改</p>
<p>2.3 输入【reboot】 重启linux，必须reboot，否则/dev/vda4无法格式化。</p>
<p>2.4 这时在/dev/目录下，才能看到了新的分区比如/dev/vda4</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2500" src="https://i.p1e.cn/2021/02/1612747538-16127475221.png" alt="" width="705" height="285" /></p>
<p>2.5 格式化</p>
<p><code>mkfs.ext4 /dev/vda4</code></p>
<p><strong>三、扩展/dev/mapper/centos-root</strong></p>
<p>3.1.创建pv(给刚刚新建的分区 /dev/vda4)<br />
[root@localhost ~]# <code>pvcreate /dev/vda4</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2511" src="https://i.p1e.cn/2021/02/1612748604-16127485891.png" alt="" width="910" height="79" /></p>
<p>3.2.把pv加入vg中，相当于扩充vg的大小，先使用vgs查看vg组<br />
[root@localhost ~]# <code>vgs</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2509" src="https://i.p1e.cn/2021/02/1612748507-16127484911.png" alt="" width="437" height="62" /></p>
<p>扩展vg，使用vgextend命令<br />
[root@localhost ~]# <code>vgextend centos /dev/vda4</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2510" src="https://i.p1e.cn/2021/02/1612748547-16127485341.png" alt="" width="450" height="47" /></p>
<p>3.3.我们成功把vg卷扩展了，在用vgs查看一下<br />
[root@localhost ~]# <code>vgs</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2507" src="https://i.p1e.cn/2021/02/1612748380-16127483671.png" alt="" width="455" height="63" /></p>
<p>[root@localhost ~]# <code>lvs</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2508" src="https://i.p1e.cn/2021/02/1612748452-16127484391.png" alt="" width="795" height="61" /><br />
虽然我们把vg扩展了，但是lv还没有扩展</p>
<p>3.4.扩展lv，使用lvextend命令<br />
[root@localhost ~]# <code>lvextend -L +29G /dev/mapper/centos-root</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2506" src="https://i.p1e.cn/2021/02/1612748277-16127482521.png" alt="" width="938" height="61" /><br />
注意，这里的29G是按照你空间大小来写的</p>
<p>查看lv大小<br />
[root@localhost ~]# <code>lvs</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2505" src="https://i.p1e.cn/2021/02/1612748210-16127481931.png" alt="" width="820" height="60" /></p>
<p>查看df -h中变化没有<br />
[root@localhost ~]# <code>df -h</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2503" src="https://i.p1e.cn/2021/02/1612747999-20210208093213.png" alt="" width="775" height="178" /><br />
我们看到没有变化。<br />
lvextend扩展的是lv, df看到的是文件系统,  看来还需要扩展文件系统。</p>
<p><code>resize2fs -p -F /dev/mapper/centos-root</code></p>
<p>再使用df -h查看<br />
[root@localhost ~]# <code>df -h</code><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2504" src="https://i.p1e.cn/2021/02/1612748156-16127481401.png" alt="" width="618" height="183" /><br />
到这里我们就成功扩展了。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/2498.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>把腾讯云主机CentOS源更换成内网</title>
		<link>https://p1e.cn/html/2338.html</link>
					<comments>https://p1e.cn/html/2338.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Fri, 29 Jan 2021 01:10:49 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[腾讯云]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=2338</guid>

					<description><![CDATA[备份系统旧配置文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 获取对应版本的CentOS-Base.repo 到/etc/yum.repos.d/目录 各版本源配置列表 CentOS5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tencentyun.com/repo/centos5_base.repo CentOS6 wget -O]]></description>
										<content:encoded><![CDATA[<h2 id="_1">备份系统旧配置文件</h2>
<div class="codehilite">
<pre>mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
</pre>
</div>
<h2 id="centos-baserepo-etcyumreposd">获取对应版本的CentOS-Base.repo 到/etc/yum.repos.d/目录</h2>
<h3 id="centos_1">各版本源配置列表</h3>
<h4 id="centos5">CentOS5</h4>
<div class="codehilite">
<pre>wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tencentyun.com/repo/centos5_base.repo
</pre>
</div>
<h4 id="centos6">CentOS6</h4>
<div class="codehilite">
<pre>wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tencentyun.com/repo/centos6_base.repo
</pre>
</div>
<h4 id="centos7">CentOS7</h4>
<div class="codehilite">
<pre>wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tencentyun.com/repo/centos7_base.repo
</pre>
</div>
<h4 id="centos8">CentOS8</h4>
<div class="codehilite">
<pre>wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tencentyun.com/repo/centos8_base.repo
</pre>
</div>
<h2 id="_3">更新缓存</h2>
<div class="codehilite">
<pre>yum clean all
yum makecache
</pre>
<p>如需公网访问地址，请把mirrors.tencentyun.com替换成下面的：<br />
http://mirrors.cloud.tencent.com/</p>
<p>http://mirrors.tencent.com/</p>
</div>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/2338.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
