﻿<?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; 台湾vps</title>
	<atom:link href="http://help.vps12.com/tag/%e5%8f%b0%e6%b9%bevps/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>如何将CentOS 7升级到CentOS 8</title>
		<link>https://help.vps12.com/2032.html</link>
		<comments>https://help.vps12.com/2032.html#comments</comments>
		<pubDate>Sat, 09 Jan 2021 05:14:18 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2032</guid>
		<description><![CDATA[在本文中，您将学习如何将CentOS 7升级到CentOS 8。本文描述的步骤尚未描述正式升级，因此不能应用于生产服务器。 Upgrade-CentOS-7-to-CentOS-8 步骤1：安装EPEL储存库 首先，通过运行以下命令安装EPL存储库 yum install epel-release -y 在CentOS 7中安装EPEL Repo 步骤2：安装yum-utils工具 成功安装EPEL之后，通过运行以下命令来安装yum-utils。 然后，您需要通过执行命令来解析RPM软件包。 yum install rpmconf rpmconf -a 保留默认RPM设置 接下来，清理所有不需要的软件包。 package-cleanup &#8211;leaves package-cleanup &#8211;orphans 清理RPM软件包 步骤3：在CentOS 7中安装dnf 现在安装dnf软件包管理器，它是CentOS 8的默认软件包管理器。 yum install dnf 在CentOS 7中安装dnf 您还需要使用以下命令删除yum软件包管理器。 dnf -y remove yum yum-metadata-parser rm -Rf /etc/yum 在CentOS 7中删除Yum 步骤4：将CentOS 7升级到CentOS 8 dnf upgrade 升级CentOS 7 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2032.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 运维需要掌握的 17 个实用技巧(转)</title>
		<link>https://help.vps12.com/2029.html</link>
		<comments>https://help.vps12.com/2029.html#comments</comments>
		<pubDate>Tue, 01 Dec 2020 03:21:46 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2029</guid>
		<description><![CDATA[1、查找当前目录下所有以.tar结尾的文件然后移动到指定目录： find . -name “*.tar” -exec mv {}./backup/ ; 注解：find –name 主要用于查找某个文件名字，-exec 、xargs可以用来承接前面的结果，然后将要执行的动作，一般跟find在一起用的很多，find使用我们可以延伸-mtime查找修改时间、-type是指定对象类型（常见包括f代表文件、d代表目录），-size 指定大小，例如经常用到的：查找当前目录30天以前大于100M的LOG文件并删除。 find . -name “*.log” –mtime +30 –typef –size +100M &#124;xargs rm –rf {}; 2、批量解压当前目录下以.zip结尾的所有文件到指定目录： for i in `find . –name “*.zip”–type f ` do unzip –d $i /data/www/img/ done 注解：forI in （command）;do … done为for循环的一个常用格式，其中I为变量，可以自己指定。 3、sed常用命收集：test.txt做测试 如何去掉行首的.字符: sed-i ‘s/^.//g’ test.txt 在行首添加一个a字符: sed’s/^/a/g’ [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2029.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vzquota : (error) Quota on syscall for id 189: Device or resource busy的解决方法(转)</title>
		<link>https://help.vps12.com/1824.html</link>
		<comments>https://help.vps12.com/1824.html#comments</comments>
		<pubDate>Tue, 05 Jun 2018 16:14:56 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1824</guid>
		<description><![CDATA[开启openvz虚拟机的时候总也失败，命令行启动提示错误如下： vzctl start 189 Starting container &#8230; vzquota : (error) Quota on syscall for id 156: Device or resource busy vzquota : (error) Possible reasons: vzquota : (error) &#8211; Container&#8217;s root is already mounted vzquota : (error) &#8211; there are opened files inside Container&#8217;s private area vzquota : (error) &#8211; your current working directory is [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1824.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle安装错误ora-00922（缺少或无效选项）</title>
		<link>https://help.vps12.com/1822.html</link>
		<comments>https://help.vps12.com/1822.html#comments</comments>
		<pubDate>Mon, 04 Jun 2018 17:04:30 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[网络产品]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1822</guid>
		<description><![CDATA[安装Oracle 11g R2的过程中，在新建数据库实例时出现了该错误，如果选择”忽略”就会出现ora-28000错误。 经网络查询验证，这是属于在前面配置管理员密码的时候，采用了数字开头的密码，Oracle貌似对此不支持，但当时不提示出错，晕倒！据说包含其他非法特殊字符也可能产生此问题。 记录一下，给自己备忘： ORA-00922: 选项缺失或无效 错误原因：一般是语句的语法有问题。比如命名不对，关键字写错等等。对于非标准的命名，一般采用双引号来创建。 解决办法： 标识符命名规则: 1、必须以字母开始。 2、长度不能超过30个单字节字符。 3、只能包括A-Z，a-z，0-9，_，$和#。 4、不能在相同用户下建立两个同名的对象。 5、不能使用保留字和关键字 ORA-28000: 账户锁定 第一步：使用PL/SQL，登录名为system,数据库名称不变，选择类型的时候把Normal修改为Sysdba; 第二步：选择myjob,查看users; 第三步：选择system,右击点击“编辑”； 第四步：修改密码，把“帐户被锁住”的勾去掉； 第五步：点击“应用”再点击“关闭”； 第六步：重新登录就可以通过验证了；]]></description>
		<wfw:commentRss>https://help.vps12.com/1822.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux/BSD下修正磁盘的顺序编号（/dev/sdbX）(转)</title>
		<link>https://help.vps12.com/1819.html</link>
		<comments>https://help.vps12.com/1819.html#comments</comments>
		<pubDate>Sat, 02 Jun 2018 14:19:31 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[解决方案]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1819</guid>
		<description><![CDATA[假设你现在新建一个分区在磁盘后面的区块，它的编号就应该是/dev/sdb1（假定是Primary分区，或者/dev/sda1什么的取决于第几个磁盘），好了，前面留下来的空白区域再建一个分区，结果区块前面的是/dev/sdb2，后面的反倒是/dev/sdb1了！！！强迫症患者不能忍！！！就像Windows下C、D、E、F盘错位变成了D、C、E、F一样不能忍啊！ 解决办法很easy，借助fdisk这个强大的命令，各个BSD/Linux发行版都有的放心。以Fedora为例，终端下执行： su -c &#8216;fdisk /dev/sdb&#8217; x f w x、f、w是进入fdisk后执行的指令，x是进入专家模式，f是修正磁盘序号，w写入分区信息并退出fdisk，别弄错了。最好不要在已经挂载的磁盘上执行，所以如果你要这样修改你的机器硬盘的话，建议从LiveCD启动来修正。 好了，强迫症患者心情舒畅了，/dev/sdb1和/dev/sdb2都领到了该有的位置。 P.S. 正因为这个序号容易变动，所以GRUB/GRUB2的配置文件中的分区强烈建议使用UUID而不是/dev/sdbX来表征！]]></description>
		<wfw:commentRss>https://help.vps12.com/1819.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下lv调整空间大小</title>
		<link>https://help.vps12.com/1756.html</link>
		<comments>https://help.vps12.com/1756.html#comments</comments>
		<pubDate>Fri, 20 Oct 2017 06:14:23 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1756</guid>
		<description><![CDATA[一、目的 在使用CentOS6.3版本linux系统的时候，发现根目录(/)的空间不是很充足，而其他目录空间有很大的空闲，所以本文主要是针对现在已有的空间进行调整。首先，先来查看一下系统的空间分配情况： ?View Code BASH1 2 3 4 5 6 7 8 &#91;root@CentOS-78 /&#93;# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_centos-lv_root 50G 14G 34G 30% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/sda1 485M 37M 423M 8% /boot /dev/mapper/vg_centos-lv_home 404G 670M 382G 1% /home 下面的详细步骤部分将从vg_centos-lv_home分区下取出100G的空间添加到/vg_centos-lv_root分区上去。 二、详细步骤 1、卸载vg_centos-lv_home分区 ?View Code BASH1 2 3 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1756.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下一网卡多IP设置</title>
		<link>https://help.vps12.com/1651.html</link>
		<comments>https://help.vps12.com/1651.html#comments</comments>
		<pubDate>Sat, 26 Nov 2016 16:47:28 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1651</guid>
		<description><![CDATA[方法1：少量IP手动绑定（这里以绑定IP到eth0为例，其它网卡的话修改相应的文件名即可） 1.复制ifcfg-eth0的网卡配置文件并改名为ifcfg-eth0:0 [root@akinlau /]# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0 2.编辑ifcfg-eth0:0文件 [root@akinlau /]# vim /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=”eth0:0″ //这里修改为eth0:0跟文件名保持一致 BOOTPROTO=”static” //协议为静态，用none也可以 HWADDR=”00:0C:29:6F:62:A7″ //MAC地址 ONBOOT=”yes” //开机启用此网卡 IPADDR=192.168.1.3 //新绑定的IP NETMASK=255.255.255.0 //子网掩码 GATEWAY=192.168.1.1 //网关 修改好后保存退出，然后启用这张网卡 [root@akinlau /]# ifup eth0:0 注：有人在这一步喜欢用service network restart重启网络，其实这是没必要的，只需要启用这张网卡就可以了 然后再试ping 一下，如果能ping通的话，就可以了。 方法2：自动绑定一个IP段或多个IP段（同样这里以eth0为例，其它网卡的话修改相应的文件名即可） 1.新建ifcfg-eth0-range0文件（注意这里的文件名不要调换range的位置或写错单词，不然的话绑定的IP是不会生效的，如果你还有几段IP要绑定到eth0上的话，你可以再新建ifcfg-eth0-range1, ifcfg-eth0-range2等文件，不过这里要注意每个range文件中的定义的CLONENUM_START值不能重叠，不然的话会出问题。 ） [root@akinlau /]# /etc/sysconfig/network-scripts/ifcfg-eth0-range0 #写入以下内容 DEVICE=eth0 //绑定IP段的网卡名称 ONBOOT=yes //开机启用此网卡 BOOTPROTO=static //协议为静态 IPADDR_START=192.168.0.101 //网段的起始IP IPADDR_END=192.168.0.120 //网段的截止IP NETMASK=255.255.255.255 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1651.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos 内存越来越大 内存占满 释放内存</title>
		<link>https://help.vps12.com/1584.html</link>
		<comments>https://help.vps12.com/1584.html#comments</comments>
		<pubDate>Fri, 06 May 2016 07:34:17 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1584</guid>
		<description><![CDATA[Centos 内存占满 释放内存 大家经常使用centos系统是不是感觉经常使用top看到内存在使用一段时间后会越来越大，我也一样，今天用 free -m 查看，发现内存跑满了。 top后按下shift+m，就是按内存占用百分比排序的程序，发现排在第一的进程，才占用0.9%，那是什么占用的呢？谷歌了一下，据说是centos为了提高效率，把部分使用过的文件缓存到了内存里。如果是这样的话，我又不需要这样的文件性能，那就可以释放。如下两个命令就可以： ?View Code BASH1 2 sync echo 3 &#62; /proc/sys/vm/drop_caches]]></description>
		<wfw:commentRss>https://help.vps12.com/1584.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>远程密令临时开启ssh端口</title>
		<link>https://help.vps12.com/1575.html</link>
		<comments>https://help.vps12.com/1575.html#comments</comments>
		<pubDate>Wed, 04 May 2016 18:14:36 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1575</guid>
		<description><![CDATA[linux服务器，我们一般是通过ssh通道远程管理，这就需要我们开启ssh端口，如22。但开启端口有被暴力破解的风险，你会说可以设置复杂的密码或使用证书避免。就算破解不了密码，但openssh也可能会有漏洞，你会说可以更改ssh端口，但还是有可能被扫描出来。还有一种选择，我们可以只允许指定IP访问ssh，通过vpn登录管理服务器，但局限很明显，万一紧急情况vpn登录不上去了怎么办。(有条件的我们可以多设置几个指定ip访问，保险些。也推荐大家用这个方法，对我们做数据中心服务器提供商多设置几个ip允许访问当然没有什么问题，因为资源多。)资源少的可以有其他办法吗？答案是肯定的。 下面给出一种个人觉得比较满意的解决方案，即使用iptables的recent模块，通过密令临时开启ssh端口。当然，密令需要保管好，防止外泄。（其实这种办法个人来讲，并不是非常推荐。因为人长时间不连服务器容易健忘密令。哈） 1、iptables规则设定 ?View Code BASH1 2 3 4 #指定78字节的icmp数据包(包含IP头部20字节，ICMP头部8字节)通过被加入openssh列表。 iptables -A INPUT -p icmp --icmp-type 8 -m length --length 78 -m recent --set --name sshopen --rsource -j ACCEPT #检查openssh列表是否存在你的来源IP，如果存在，即从第一次使用密令开始15秒钟内开启ssh端口22,超过15秒端口自动关闭，不再允许新连接，已连接的不会断开。 iptables -A INPUT -p tcp --dport 22 --syn -m recent --rcheck --seconds 15 --name sshopen --rsource -j ACCEPT 2、临时开启ssh端口密令 ?View Code BASH1 2 linux下:ping -s [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1575.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows下的PHP安装文件线程安全和非线程安全的区别</title>
		<link>https://help.vps12.com/1202.html</link>
		<comments>https://help.vps12.com/1202.html#comments</comments>
		<pubDate>Tue, 25 Nov 2014 12:49:16 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[网络产品]]></category>
		<category><![CDATA[软件使用]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=1202</guid>
		<description><![CDATA[从2000年10月20日发布的第一个Windows版的PHP3.0.17开始的都是线程安全的版本，这是由于与Linux/Unix系统是采用 多进程的工作方式不同的是Windows系统是采用多线程的工作方式。如果在IIS下以CGI方式运行PHP会非常慢，这是由于CGI模式是建立在多进程 的基础之上的，而非多线程。一般我们会把PHP配置成以ISAPI的方式来运行，ISAPI是多线程的方式，这样就快多了。但存在一个问题，很多常用的 PHP扩展是以Linux/Unix的多进程思想来开发的，这些扩展在ISAPI的方式运行时就会出错搞垮IIS。而用线程安全版本的话顶多只是搞跨某个 线程，而不会影响到整个IIS的安全。 当然在IIS下CGI模式才是 PHP运行的最安全方式，但CGI模式对于每个HTTP请求都需要重新加载和卸载整个PHP环境，其消耗是巨大的。为了兼顾IIS下PHP的效率和安全， 有人给出了FastCGI的解决方案。FastCGI可以让PHP的进程重复利用而不是每一个新的请求就重开一个进程。同时FastCGI也可以允许几个 进程同时执行。这样既解决了CGI进程模式消耗太大的问题，又利用上了CGI进程模式不存在线程安全问题的优势。 因此，如果是使用ISAPI的方式来运行PHP就必须用Thread Safe(线程安全)的版本；而用FastCGI模式运行PHP的话就没有必要用线程安全检查了，用None Thread Safe(NTS，非线程安全)的版本能够更好的提高效率。 因此，如果是使用ISAPI的方式来运行PHP就必须用Thread Safe(线程安全)的版本；而用FastCGI模式运行PHP的话就没有必要用线程安全检查了，用None Thread Safe(NTS，非线程安全)的版本能够更好的提高效率。 附：德问相关问题摘录 下载PHP安装文件时，我看到有两种不同的二进制文件，像是非线程安全（Non Thread Safe）和线程安全（Thread Safe），比如该页面所列：http://windows.php.net/download/。这个是什么意思，之间有什么区别？ 这个主要是针对web server 而言，在windows环境下，如果你使用的web server 是apchae 或者 iis 7以下版本，则应该选择线程安全的安装文件，而如果你使用Fast-cgi模式时，可以选择非线程安全，因为 web sever 本身能保证线程安全。 当然还有二进制文件编译时所使用的编译器：vc9 (vs系列) vc6(gcc) 如楼上所言，是针对web server的，部分web server在处理应用请求的时候是用多线程而非多进程的方式处理，线程方式因为涉及到共享寄存器和内存，所以很容易出错，这个时候程序就需要花一些额外的经历去处理寄存器中的数据一致性，即保证线程安全。 所以是否采用线程安全主要看你的web server所采用的PHP请求处理方式，如果是多线程处理，那么请选择线程安全的，否则选择非线程安全的，如楼上所说Fast-cgi方式可选择非线程安全的]]></description>
		<wfw:commentRss>https://help.vps12.com/1202.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
