<?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>技术归档 - 猪 i0oo0</title>
	<atom:link href="https://i0oo0.com/tag/%E6%8A%80%E6%9C%AF/feed/" rel="self" type="application/rss+xml" />
	<link>https://i0oo0.com/tag/技术/</link>
	<description>爱猪</description>
	<lastBuildDate>Thu, 17 Sep 2020 13:26:47 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>https://i0oo0.com/wp-content/uploads/2019/02/favicon-2.png</url>
	<title>技术归档 - 猪 i0oo0</title>
	<link>https://i0oo0.com/tag/技术/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>V2RAY 客户端</title>
		<link>https://i0oo0.com/2019/12/01/v2ray-%e5%ae%a2%e6%88%b7%e7%ab%af/</link>
					<comments>https://i0oo0.com/2019/12/01/v2ray-%e5%ae%a2%e6%88%b7%e7%ab%af/#comments</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Sun, 01 Dec 2019 21:31:47 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[V2RAY]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=1070</guid>

					<description><![CDATA[<p>以下是我总结的V2RAY几乎所有平台的客[...]</p>
<p><a href="https://i0oo0.com/2019/12/01/v2ray-%e5%ae%a2%e6%88%b7%e7%ab%af/">V2RAY 客户端</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<div>
<div class="ant-tag ant-tag-green">以下是我总结的V2RAY几乎所有平台的客户端。</div>
<div class="ant-tag ant-tag-green">点击Github，可以去客户端作者的Github页面下载。</div>
<div class="ant-tag ant-tag-green">安卓用户点击Play Store，可以去谷歌的安卓商店下载(在内地的小伙伴需要有安装谷歌内核以及使用代理)</div>
<div>**如果你不能通过Github下载，而且你也情愿冒着可能下载到旧版本客户端的风险的话，可以点i0oo0，通过我的网站下载。</div>
<div class="ant-tag ant-tag-green">v2rayN（Windows）</div>
<p><a href="https://github.com/2dust/v2rayN/releases" target="_blank" rel="noopener noreferrer">Github </a>&#8212; <a href="https://i0oo0.com/wp-content/uploads/2019/12/v2rayN.zip" target="_blank" rel="noopener noreferrer">从i0oo0直接下载</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">v2rayX（Mac）</div>
<p><a href="https://github.com/Cenmrev/V2RayX/releases" target="_blank" rel="noopener noreferrer">Github</a> &#8212; <a href="https://i0oo0.com/wp-content/uploads/2019/12/V2RayX.app_.zip" target="_blank" rel="noopener noreferrer">从i0oo0直接下载</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">v2rayNG（Android）</div>
<p><a href="https://github.com/2dust/v2rayNG/releases" target="_blank" rel="noopener noreferrer">Github</a> &#8212; <a href="https://i0oo0.com/wp-content/uploads/2019/12/v2rayNG_1.1.15.apk_.zip">从i0oo0直接下载</a></p>
<div class="ant-divider ant-divider-vertical"></div>
<p><a href="https://play.google.com/store/apps/details?id=com.v2ray.ang" target="_blank" rel="noopener noreferrer">Play Store</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">Kitsunebi（Android）</div>
<p><a href="https://github.com/eycorsican/kitsunebi-android/releases" target="_blank" rel="noopener noreferrer">Github</a></p>
<div class="ant-divider ant-divider-vertical"></div>
<p><a href="https://play.google.com/store/apps/details?id=fun.kitsunebi.kitsunebi4android" target="_blank" rel="noopener noreferrer">Play Store</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">BifrostV（Android）</div>
<p><a href="https://play.google.com/store/apps/details?id=com.github.dawndiy.bifrostv" target="_blank" rel="noopener noreferrer">Play Store</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">Kitsunebi（iOS）</div>
<p><a href="https://itunes.apple.com/us/app/kitsunebi-proxy-utility/id1446584073?mt=8" target="_blank" rel="noopener noreferrer">iTunes</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">i2Ray（iOS）</div>
<p><a href="https://itunes.apple.com/us/app/i2ray/id1445270056?mt=8" target="_blank" rel="noopener noreferrer">iTunes</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">Shadowrocket（iOS）</div>
<p><a href="https://itunes.apple.com/us/app/shadowrocket/id932747118?mt=8" target="_blank" rel="noopener noreferrer">iTunes</a> <strong><span style="color: #333399;"><a href="https://top.pork.icu/">猪的大飞机高级版</a>里面有此软件的共享账号，已经买好了，登录苹果账号直接下载</span></strong></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">Pepi（iOS）</div>
<p><a href="https://itunes.apple.com/us/app/pepi/id1283082051?mt=8" target="_blank" rel="noopener noreferrer">iTunes</a></p>
</div>
<div class="ant-divider ant-divider-horizontal"></div>
<div>
<div class="ant-tag ant-tag-green">Quantumult（iOS）</div>
<p><a href="https://itunes.apple.com/us/app/quantumult/id1252015438?mt=8" target="_blank" rel="noopener noreferrer">iTunes</a></p>
</div>
<p><a href="https://i0oo0.com/2019/12/01/v2ray-%e5%ae%a2%e6%88%b7%e7%ab%af/">V2RAY 客户端</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/12/01/v2ray-%e5%ae%a2%e6%88%b7%e7%ab%af/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Centos7编译安装最新版aria2 1.35.0 （2020.1.22更新）</title>
		<link>https://i0oo0.com/2019/06/05/centos7%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88aria2-1-34-0/</link>
					<comments>https://i0oo0.com/2019/06/05/centos7%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88aria2-1-34-0/#comments</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Wed, 05 Jun 2019 16:00:11 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[aria2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[下载]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=720</guid>

					<description><![CDATA[<p>aria2是很好用的多线程下载工具。lite却又很powerful。可以下载直链，磁力，BT，不能下载电驴。虽然其实版本新旧并不会对基本功能有任何影响。但是我还是比较喜欢用最新版。本文就是在centos7系统下安装最新版aria2，并且设置开机启动...</p>
<p><a href="https://i0oo0.com/2019/06/05/centos7%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88aria2-1-34-0/">Centos7编译安装最新版aria2 1.35.0 （2020.1.22更新）</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>aria2是很好用的多线程下载工具。lite却又很powerful。可以下载直链，磁力，BT，不能下载电驴。虽然其实版本新旧并不会对基本功能有任何影响。但是我还是比较喜欢用最新版。</p>
<p>然而最新版都是编译安装，没有所谓一键安装包。所以安装速度相比于快速安装就可能慢几十倍甚至几百倍（并没有用夸张修辞）</p>
<p>总之。网上并没有最新版的安装指令，而我又不想每次都用手敲。毕竟谁不想复制粘贴呢。。所以以下就是aria2的1.34.0版（目前最新版）的编译安装指令。</p>
<p>我用的是centos7，其他系统不怎么用，以后有了解了可以再发帖。另外内存不要太小，至少有个500mb吧，因为编译会占一些资源。我用的是独立服务器</p>
<p>Ok，开始</p>
<hr />
<p>首先下载安装包，并解压缩，并打开目录。</p>
<pre class="brush: plain; title: ; notranslate">
wget https://github.com/aria2/aria2/releases/download/release-1.35.0/aria2-1.35.0.tar.gz
tar -zxvf aria2-1.35.0.tar.gz
cd aria2-1.35.0
</pre>
<p>然后安装GNU编译器套件</p>
<pre class="brush: plain; title: ; notranslate">
yum install gcc*
</pre>
<p>configure一下</p>
<pre class="brush: plain; title: ; notranslate">
./configure
</pre>
<p>然后make</p>
<pre class="brush: plain; title: ; notranslate">
make
</pre>
<p>最后make install</p>
<pre class="brush: plain; title: ; notranslate">
make install
</pre>
<p>然后就安完了。。好像也并没什么大不了。。难怪网上没人写。。不过我比较懒嘛。。还是愿意一劳永逸，复制粘贴。。另外服务器比较多，，能节约点时间就节约点时间。</p>
<p>接下来就是创建aria2配置文件</p>
<pre class="brush: plain; title: ; notranslate">
mkdir ~/.aria2
touch ~/.aria2/aria2.session
touch ~/.aria2/aria2.conf
</pre>
<p>创建完之后可以找办法打开这个文件。如果想直接在terminal打开就运行下面这行代码。当然我建议用一个可视化界面打开，例如各种panel，或者ftp客户端、sftp客户端等等，因为懒。。</p>
<pre class="brush: plain; title: ; notranslate">
vi ~/.aria2/aria2.conf
</pre>
<p>把配置文件复制进去。以下是我的配置文件（注意看中文注解，因为我的服务器配置都足够强，所以有些数据调的比较不一样。还有文件储存位置，记得改成你自己的）</p>
<pre class="brush: plain; title: ; notranslate">
## 文件保存相关 ##
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置
dir=/www/wwwroot/disk
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M
#disk-cache=128M
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc
# 预分配所需时间: none &amp;lt; falloc ? trunc &amp;lt; prealloc
# falloc和trunc则需要文件系统和内核支持
# NTFS建议使用falloc, EXT3/4建议trunc, MAC 下需要注释此项
#file-allocation=none
# 断点续传
continue=true
 
## 下载连接相关 ##
# 最大同时下载任务数, 运行时可修改, 默认:5
max-concurrent-downloads=50
# 同一服务器连接数, 添加时可指定, 默认:1
max-connection-per-server=16
# 最小文件分片大小, 添加时可指定, 取值范围1M -1024M, 默认:20M
# 假定size=10M, 文件为20MiB 则使用两个来源下载; 文件为15MiB 则使用一个来源下载
min-split-size=10M
# 单个任务最大线程数, 添加时可指定, 默认:5
split=20
# 整体下载速度限制, 运行时可修改, 默认:0
#max-overall-download-limit=0
# 单个任务下载速度限制, 默认:0
#max-download-limit=0
# 整体上传速度限制, 运行时可修改, 默认:0
#max-overall-upload-limit=0
# 单个任务上传速度限制, 默认:0
#max-upload-limit=0
# 禁用IPv6, 默认:false
disable-ipv6=true
## 进度保存相关 ##
# 从会话文件中读取下载任务
input-file=/root/.aria2/aria2.session
# 在Aria2退出时保存`错误/未完成`的下载任务到会话文件
save-session=/root/.aria2/aria2.session
# 定时保存会话, 0为退出时才保存, 需1.16.1以上版本, 默认:0
#save-session-interval=60
 
## RPC相关设置 ##
# 启用RPC, 默认:false
enable-rpc=true
# 允许所有来源, 默认:false
rpc-allow-origin-all=true
# 允许非外部访问, 默认:false
rpc-listen-all=true
# 事件轮询方式, 取值:&#x5B;epoll, kqueue, port, poll, select], 不同系统默认值不同
#event-poll=select
# RPC监听端口, 端口被占用时可以修改, 默认:6800
rpc-listen-port=51868
# 设置的RPC授权令牌, v1.18.4新增功能, 取代 --rpc-user 和 --rpc-passwd 选项
#rpc-secret=11a22b33c
# 设置的RPC访问用户名, 此选项新版已废弃, 建议改用 --rpc-secret 选项
#rpc-user=&amp;lt;user&amp;gt;
# 设置的RPC访问密码, 此选项新版已废弃, 建议改用 --rpc-secret 选项
#rpc-passwd=&amp;lt;passwd&amp;gt;
 
## BT/PT下载相关 ##
# 当下载的是一个种子(以.torrent结尾)时, 自动开始BT任务, 默认:true
follow-torrent=true
# BT监听端口, 当端口被屏蔽时使用, 默认:6881-6999
listen-port=36000-36999
# 单个种子最大连接数, 默认:55
bt-max-peers=0
# 打开DHT功能, PT需要禁用, 默认:true
enable-dht=true
# DHT网络监听端口, 默认:6881-6999
dht-listen-port=38000-38999
# 本地节点查找, PT需要禁用, 默认:false
#bt-enable-lpd=false
# 种子交换, PT需要禁用, 默认:true
enable-peer-exchange=true
# 每个种子限速, 对少种的PT很有用, 默认:50K
#bt-request-peer-speed-limit=50K
# 客户端伪装, PT需要
peer-id-prefix=-TR2940-
user-agent=Transmission/2.94
# 当种子的分享率达到这个数时, 自动停止做种, 0为一直做种, 默认:1.0
seed-ratio=1.0
# 强制保存会话, 即使任务已经完成, 默认:false
# 较新的版本开启后会在任务完成后依然保留.aria2文件
#force-save=false
# BT校验相关, 默认:true
#bt-hash-check-seed=true
# 继续之前的BT任务时, 无需再次校验, 默认:false
bt-seed-unverified=true
# 保存磁力链接元数据为种子文件(.torrent文件), 默认:false
#bt-save-metadata=true

# bt-tracker数据来自https://github.com/ngosang/trackerslist/blob/master/trackers_all_udp.txt
bt-tracker=udp://tracker.coppersurfer.tk:6969/announce,udp://tracker.open-internet.nl:6969/announce,udp://tracker.leechers-paradise.org:6969/announce,udp://exodus.desync.com:6969/announce,udp://tracker.internetwarriors.net:1337/announce,http://tracker.internetwarriors.net:1337/announce,udp://tracker.opentrackr.org:1337/announce,udp://9.rarbg.to:2710/announce,udp://9.rarbg.me:2710/announce,http://tracker.opentrackr.org:1337/announce,http://tracker3.itzmx.com:6961/announce,http://tracker1.itzmx.com:8080/announce,udp://open.demonii.si:1337/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://thetracker.org:80/announce,udp://denis.stalker.upeer.me:6969/announce,udp://bt.xxx-tracker.com:2710/announce,udp://open.stealth.si:80/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://explodie.org:6969/announce,http://open.acgnxtracker.com:80/announce,http://explodie.org:6969/announce,udp://tracker.iamhansen.xyz:2000/announce,udp://retracker.lanta-net.ru:2710/announce,udp://tracker.supertracker.net:1337/announce,udp://tracker.filepit.to:6969/announce,udp://tracker.filemail.com:6969/announce,udp://torrentclub.tech:6969/announce,udp://retracker.netbynet.ru:2710/announce,udp://retracker.baikal-telecom.net:2710/announce,http://tracker4.itzmx.com:2710/announce,udp://tracker2.itzmx.com:6961/announce,udp://tracker.trackton.ga:7070/announce,udp://tracker.dyn.im:6969/announce,http://tracker2.itzmx.com:6961/announce,udp://tracker.novg.net:6969/announce,http://tracker.novg.net:6969/announce,http://gwp2-v19.rinet.ru:80/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.tvunderground.org.ru:3218/announce,udp://carapax.net:6969/announce,https://tracker.fastdownload.xyz:443/announce,https://t.quic.ws:443/announce,http://open.trackerlist.xyz:80/announce,http://carapax.net:6969/announce,udp://zephir.monocul.us:6969/announce,http://vps02.net.orel.ru:80/announce,http://tracker.tvunderground.org.ru:3218/announce,http://open.acgtracker.com:1096/announce,http://mail2.zelenaya.net:80/announce,udp://home.penza.com.ru:6969/announce,https://tracker.gbitt.info:443/announce,http://tracker.gbitt.info:80/announce,wss://tracker.openwebtorrent.com:443/announce,udp://tracker4.itzmx.com:2710/announce,udp://tracker.swateam.org.uk:2710/announce,http://tracker.bz:80/announce,http://torrent.nwps.ws:80/announce,http://t.nyaatracker.com:80/announce,http://retracker.sevstar.net:2710/announce,udp://tracker.nyaa.uk:6969/announce,udp://tracker.moeking.me:6969/announce,udp://tracker.justseed.it:1337/announce,udp://tracker-2.msm8916.com:6969/announce,udp://packages.crunchbangplusplus.org:6969/announce,udp://chihaya.toss.li:9696/announce,udp://amigacity.xyz:6969/announce,https://tracker.vectahosting.eu:2053/announce,https://1337.abcvg.info:443/announce,http://tracker.torrentyorg.pl:80/announce,http://t.acg.rip:6699/announce,http://share.camoe.cn:8080/announce,http://retracker.mgts.by:80/announce,http://amigacity.xyz:6969/announce,http://agusiq-torrents.pl:6969/announce
#end
</pre>
<p>弄好了之后保存，然后运行下面这个代码。。如果没有报错，则说明安装成功。可以点control+C把它关掉</p>
<pre class="brush: plain; title: ; notranslate">
aria2c –conf-path=/root/.aria2/aria2.conf
</pre>
<p>最后可以让aria2随系统启动。先touch一下</p>
<pre class="brush: plain; title: ; notranslate">
touch /etc/init.d/aria2c
</pre>
<p>然后用可视化客户端把以下代码复制进去</p>
<pre class="brush: plain; title: ; notranslate">
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Aria2 Downloader
### END INIT INFO
case &quot;$1&quot; in
start)
  echo -n &quot;Starting aria2c&quot;
  /usr/local/bin/aria2c --conf-path=/root/.aria2/aria2.conf -D
  ;;
stop)
  echo -n &quot;Shutting down aria2c &quot;
  killall aria2c ;;
restart)
  killall aria2c
  /usr/local/bin/aria2c --conf-path=/root/.aria2/aria2.conf -D
  ;;
esac
exit
</pre>
<p>当然你要是会用vi也可以直接用vi，不touch。<br />
最后赋予这个文件权限</p>
<pre class="brush: plain; title: ; notranslate">
chmod 755 /etc/init.d/aria2c
</pre>
<p>以后就可以直接 通过service来启动和关闭了<br />
启动：<strong>service aria2c start</strong><br />
关闭：<strong>service aria2c stop</strong></p>
<p>最后的最后，打开系统目录<strong>/etc/rc.local</strong> 把<strong>service aria2c start</strong> 复制进去，系统就会在开机的时候运行一下这个指令，也就是开机自动启动aria2。欧耶！</p>
<p>就酱。拜拜大家！</p>
<p><a href="https://i0oo0.com/2019/06/05/centos7%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88aria2-1-34-0/">Centos7编译安装最新版aria2 1.35.0 （2020.1.22更新）</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/06/05/centos7%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88aria2-1-34-0/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress修改删减评论区</title>
		<link>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/</link>
					<comments>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/#comments</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 21:52:55 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[修改]]></category>
		<category><![CDATA[评论]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=117</guid>

					<description><![CDATA[<p>				WordPress的评论区是默认的。还需要email、网站、姓名什么的。作为一个中文站。还是把评论框里的网站之类的框框删掉好了。电子邮件可以暂时保留，以后如果觉得没必要可以再删。另外WordPress默认给评论区的配字是“Leave a Reply” 这个也可以顺便改了。		</p>
<p><a href="https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/">WordPress修改删减评论区</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>WordPress的评论区是默认的。还需要email、网站、姓名什么的。国外可能比较土吧，而且互联网发展较早，所以人人都有Email，有自己博客或者自己网站的人也非常多。我们中国则发展迅速，几年之间从无到有，所以大家现在基本都依赖微信 聊天、传文件。电子邮箱都不怎么用，拥有网站的人的比例就更少了。</p>
<p>所以作为一个中文站。还是把评论框里的网站之类的框框删掉好了。电子邮件可以暂时保留，以后如果觉得没必要可以再删。另外WordPress默认给评论区的配字是“Leave a Reply” 这个也可以顺便改了。</p>
<hr />
<h2><strong>具体步骤是这样滴：</strong></h2>
<hr />
<h3><span style="color: #000000;"><strong>先把Leave a Reply改了：</strong></span></h3>
<p><strong><span style="color: #993300;">首先登陆后台，打开“<span style="color: #0000ff;">外观&#8211;编辑</span>” 在右边找到 <span style="color: #0000ff;">评论(comments.php)</span> 点它</span></strong></p>
<figure id="attachment_128" aria-describedby="caption-attachment-128" style="width: 1872px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" class="wp-image-128 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2.png" alt="点开评论之后的截图" width="1872" height="962" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2.png 1872w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-300x154.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-768x395.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-1024x526.png 1024w" sizes="(max-width: 1872px) 100vw, 1872px" /><figcaption id="caption-attachment-128" class="wp-caption-text">点开评论之后的截图</figcaption></figure>
<p><strong><span style="color: #993300;">鼠标在内容里点一下，然后摁<span style="color: #0000ff;">command+F (Windows是control+F)</span>进行搜索。</span></strong></p>
<figure id="attachment_129" aria-describedby="caption-attachment-129" style="width: 1224px" class="wp-caption alignnone"><img decoding="async" class="wp-image-129 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2.png" alt="小搜索框截图" width="1224" height="478" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2.png 1224w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-300x117.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-768x300.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-1024x400.png 1024w" sizes="(max-width: 1224px) 100vw, 1224px" /><figcaption id="caption-attachment-129" class="wp-caption-text">小搜索框截图</figcaption></figure>
<p>在上面那个小搜索框输入“Leave a Reply”（也可能是别的，这个主要看你用的主题默认的是什么。在自己发的文章里下滑到评论区看看它是怎么写的）然后点回车。</p>
<figure id="attachment_130" aria-describedby="caption-attachment-130" style="width: 2080px" class="wp-caption alignnone"><img decoding="async" class="wp-image-130 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2.png" alt="找到了的截图" width="2080" height="1198" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2.png 2080w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-300x173.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-768x442.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-1024x590.png 1024w" sizes="(max-width: 2080px) 100vw, 2080px" /><figcaption id="caption-attachment-130" class="wp-caption-text">找到了的截图</figcaption></figure>
<p><strong><span style="color: #993300;">可以看到我们找到了呢！改成你喜欢的文字吧。。</span></strong></p>
<hr />
<h3><strong><span style="color: #000000;">下面开始把评论里的网站框神马的关掉：</span></strong></h3>
<p><strong><span style="color: #993300;">还是在“外观&#8211;编辑”右边的条条找到 模板函数(functions.php) 点它，打开</span></strong></p>
<figure id="attachment_132" aria-describedby="caption-attachment-132" style="width: 1624px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-132 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2.png" alt="打开function截图" width="1624" height="948" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2.png 1624w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-300x175.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-768x448.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-1024x598.png 1024w" sizes="(max-width: 1624px) 100vw, 1624px" /><figcaption id="caption-attachment-132" class="wp-caption-text">打开function截图</figcaption></figure>
<p>在最后添加这段代码</p>
<pre class="brush: php; title: ; notranslate">
//删除url
add_filter('comment_form_default_fields', 'mytheme_remove_url');
 
function mytheme_remove_url($arg) {
    $arg&#x5B;'url'] = '';
    return $arg;
}
//删除url完毕 i0oo0
</pre>
<figure id="attachment_133" aria-describedby="caption-attachment-133" style="width: 1276px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-133 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2.png" alt="删除url完毕" width="1276" height="340" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2.png 1276w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-300x80.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-768x205.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-1024x273.png 1024w" sizes="(max-width: 1276px) 100vw, 1276px" /><figcaption id="caption-attachment-133" class="wp-caption-text">删除url截图</figcaption></figure>
<p>当然愿意加个QQ也是可以的，虽然大家现在也不怎么用QQ了，</p>
<pre class="brush: php; title: ; notranslate">
//增加个QQ
function my_fields($fields) {
	$fields&#x5B;'qq'] = '

' . '&lt;label for=&quot;qq&quot;&gt;'.__('QQ').'&lt;/label&gt; ' .
	'&lt;input id=&quot;qq&quot; name=&quot;qq&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $commenter&#x5B;'comment_qq'] ) . '&quot; size=&quot;30&quot; /&gt;

';
	return $fields;
}
add_filter('comment_form_default_fields','my_fields');
//增加个QQ完毕 i0oo0
</pre>
<figure id="attachment_134" aria-describedby="caption-attachment-134" style="width: 2006px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-134 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2.png" alt="增加QQ截图" width="2006" height="360" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2.png 2006w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-300x54.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-768x138.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-1024x184.png 1024w" sizes="(max-width: 2006px) 100vw, 2006px" /><figcaption id="caption-attachment-134" class="wp-caption-text">增加QQ截图</figcaption></figure>
<p><strong><span style="color: #993300;">这样网站的那个box就没了，QQ就可以有了。按照这个思路可以改其他东西。</span></strong></p>
<p><strong><span style="color: #993300;">姓名 邮箱 网址 分别是 author、email、url 修改key word就可以删除。</span></strong></p>
<p>&nbsp;</p>
<p>PS:我曾考虑要不要都删掉，就留一个评论框，匿名评论。但是这样想联系我的人也不能联系了。还是算了吧。</p>
<p>话说我们学校还给所有人都在学校服务器上开了10GB的个人空间，大家可以放自己的简历、资料，甚至如果愿意的话还可以放自己的网站。就是很棒！不过用的人不多，中国学生用这个功能的就更是凤毛麟角。等哪天我可以写一个教程，分享出来。</p>
<p>&nbsp;</p>
<p><a href="https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/">WordPress修改删减评论区</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress调整字体、大小、格式、颜色</title>
		<link>https://i0oo0.com/2019/02/20/wordpress%e8%b0%83%e6%95%b4%e5%ad%97%e4%bd%93%e3%80%81%e5%a4%a7%e5%b0%8f%e3%80%81%e6%a0%bc%e5%bc%8f%e3%80%81%e9%a2%9c%e8%89%b2/</link>
					<comments>https://i0oo0.com/2019/02/20/wordpress%e8%b0%83%e6%95%b4%e5%ad%97%e4%bd%93%e3%80%81%e5%a4%a7%e5%b0%8f%e3%80%81%e6%a0%bc%e5%bc%8f%e3%80%81%e9%a2%9c%e8%89%b2/#respond</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 01:45:00 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[字体]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=83</guid>

					<description><![CDATA[<p>				Wordpress调整字体、大小、格式、背景颜色等等的小教程。其实WordPress都是有这些功能的，只不过默认隐藏。我们要做的就是告诉它我们想显示它。改完之后就像微软的Office一样了呢。开心！		</p>
<p><a href="https://i0oo0.com/2019/02/20/wordpress%e8%b0%83%e6%95%b4%e5%ad%97%e4%bd%93%e3%80%81%e5%a4%a7%e5%b0%8f%e3%80%81%e6%a0%bc%e5%bc%8f%e3%80%81%e9%a2%9c%e8%89%b2/">WordPress调整字体、大小、格式、颜色</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>其实WordPress都是有这些功能的，只不过默认隐藏。我们要做的就是告诉它我们想显示它。</p>
<p>首先。在管理员界面点击<strong><span style="color: #0000ff;">外观-编辑</span></strong></p>
<figure id="attachment_87" aria-describedby="caption-attachment-87" style="width: 342px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-87 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.19.01-PM-2.png" alt="外观--编辑" width="342" height="400" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.19.01-PM-2.png 342w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.19.01-PM-2-257x300.png 257w" sizes="(max-width: 342px) 100vw, 342px" /><figcaption id="caption-attachment-87" class="wp-caption-text">外观&#8211;编辑</figcaption></figure>
<p>然后在右边选择<strong><span style="color: #0000ff;">模板函数(functions.php)</span></strong><span style="color: #0000ff;"><span style="color: #000000;">滑到最下面输入</span></span></p>
<pre class="brush: php; title: ; notranslate">/*
 * 让你可以选择字体 以及大小 以及颜色 就像Office那样。
 */
function add_editor_buttons($buttons) {
$buttons&#x5B;] = 'fontselect';
$buttons&#x5B;] = 'fontsizeselect';
$buttons&#x5B;] = 'backcolor';
$buttons&#x5B;] = 'underline';
$buttons&#x5B;] = 'hr';
$buttons&#x5B;] = 'sub';
$buttons&#x5B;] = 'sup';
$buttons&#x5B;] = 'cut';
$buttons&#x5B;] = 'copy';
$buttons&#x5B;] = 'paste';
$buttons&#x5B;] = 'cleanup';
$buttons&#x5B;] = 'wp_page';
$buttons&#x5B;] = 'newdocument';
return $buttons;
}
add_filter(&quot;mce_buttons_3&quot;, &quot;add_editor_buttons&quot;);
/*
 * 完毕 i0oo0
 */</pre>
<p>输入完记得点保存。就再返回写文章界面看</p>
<figure id="attachment_91" aria-describedby="caption-attachment-91" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-91 size-large" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.45.23-PM-2-1024x143.png" alt="字体修改后效果" width="640" height="89" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.45.23-PM-2-1024x143.png 1024w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.45.23-PM-2-300x42.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.45.23-PM-2-768x107.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-20-at-7.45.23-PM-2.png 1186w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption id="caption-attachment-91" class="wp-caption-text">字体修改后效果</figcaption></figure>
<p>复制 粘贴 下划线 字体 字号 颜色 一应俱全。</p>
<p>改完之后就像微软的Office一样了呢。开心！</p>
<p>开熏！</p>
<p><a href="https://i0oo0.com/2019/02/20/wordpress%e8%b0%83%e6%95%b4%e5%ad%97%e4%bd%93%e3%80%81%e5%a4%a7%e5%b0%8f%e3%80%81%e6%a0%bc%e5%bc%8f%e3%80%81%e9%a2%9c%e8%89%b2/">WordPress调整字体、大小、格式、颜色</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/02/20/wordpress%e8%b0%83%e6%95%b4%e5%ad%97%e4%bd%93%e3%80%81%e5%a4%a7%e5%b0%8f%e3%80%81%e6%a0%bc%e5%bc%8f%e3%80%81%e9%a2%9c%e8%89%b2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress将两张图片并排（待改进）</title>
		<link>https://i0oo0.com/2019/02/19/wordpress%e5%b0%86%e4%b8%a4%e5%bc%a0%e5%9b%be%e7%89%87%e5%b9%b6%e6%8e%92/</link>
					<comments>https://i0oo0.com/2019/02/19/wordpress%e5%b0%86%e4%b8%a4%e5%bc%a0%e5%9b%be%e7%89%87%e5%b9%b6%e6%8e%92/#comments</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Tue, 19 Feb 2019 22:32:30 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[修复]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[编辑]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=42</guid>

					<description><![CDATA[<p>				在刚才写WordPress中文用户名报错的时候最后加了两张图片。图片很小，可是WordPress并没有把它们放在同一行。这就很让人受不了啊喂。。。我还用的是目前最新版5.0.3 不知道以后WordPress会不会改改排版。<br />
这里用两张小表情包图片当做例子。		</p>
<p><a href="https://i0oo0.com/2019/02/19/wordpress%e5%b0%86%e4%b8%a4%e5%bc%a0%e5%9b%be%e7%89%87%e5%b9%b6%e6%8e%92/">WordPress将两张图片并排（待改进）</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="color: #333333;">问题并没有完美彻底解决，如果谁有好的方法可以告诉我，蟹蟹</span></p>
<hr />
<p>在刚才写<a href="https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/" target="_blank" rel="noopener noreferrer">WordPress中文用户名报错</a>的时候最后加了两张图片。图片很小，可是WordPress并没有把它们放在同一行。这就很让人受不了啊喂。。。我还用的是目前最新版5.0.3 不知道以后WordPress会不会改改排版。<br />
这里用两张小表情包图片当做例子。</p>
<p><span style="color: #993300;">首先是一开始插入的时候默认的排版，可以看到两个图片并没有挨在一起：</span></p>
<figure id="attachment_43" aria-describedby="caption-attachment-43" style="width: 240px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-43 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png" alt="暗中观察 表情包" width="240" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png 240w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2-150x150.png 150w" sizes="(max-width: 240px) 100vw, 240px" /><figcaption id="caption-attachment-43" class="wp-caption-text">暗中观察</figcaption></figure>
<figure id="attachment_44" aria-describedby="caption-attachment-44" style="width: 244px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-44 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png" alt="给我五块钱 表情包" width="244" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png 244w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2-150x150.png 150w" sizes="(max-width: 244px) 100vw, 244px" /><figcaption id="caption-attachment-44" class="wp-caption-text">Give Me Five</figcaption></figure>
<p><span style="color: #993300;">然后我们让第一张图片靠最左 第二张图片居中：</span></p>
<figure id="attachment_43" aria-describedby="caption-attachment-43" style="width: 240px" class="wp-caption alignleft"><img loading="lazy" decoding="async" class="wp-image-43 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png" alt="暗中观察 表情包" width="240" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png 240w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2-150x150.png 150w" sizes="(max-width: 240px) 100vw, 240px" /><figcaption id="caption-attachment-43" class="wp-caption-text">暗中观察</figcaption></figure>
<figure id="attachment_44" aria-describedby="caption-attachment-44" style="width: 244px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-44 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png" alt="给我五块钱 表情包" width="244" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png 244w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2-150x150.png 150w" sizes="(max-width: 244px) 100vw, 244px" /><figcaption id="caption-attachment-44" class="wp-caption-text">Give Me Five</figcaption></figure>
<p><span style="color: #993300;">编辑页面倒是可以了，但是发布之后还是不在同一行。这操作，实在佩服。</span></p>
<p>这里要强调一下：WordPress还不是所有html code都接受，敲了代码试图修改一下，结果还竟然被WordPress直接删掉了。。。<br />
最后终于有一行代码没有被残忍地抹掉。而且虽然效果很难看，但是好歹也将就算是在同一行。做法是：</p>
<p>第一张图片<span style="color: #ff0000;">靠左</span>，第二章图片<span style="color: #ff0000;">靠中间</span>，然后在切换到“文本”视图（我强制用了旧版编辑器，新版编辑器好像叫“代码模式”？）<span style="color: #ff0000;">编辑源代码</span>，在两个图片中间加入<span style="color: #ff0000;">&lt;div style=&#8221;float: left;&#8221;&gt;</span>这段代码。然后在第二张图片后面加入<span style="color: #ff0000;">&lt;/div&gt;</span> 其目的就是让第二张图片靠左 靠左 靠左！</p>
<figure id="attachment_58" aria-describedby="caption-attachment-58" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-58 size-large" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-4.26.39-PM-2-1024x179.png" alt="图片近乎平行的代码 截图" width="640" height="112" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-4.26.39-PM-2-1024x179.png 1024w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-4.26.39-PM-2-300x52.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-4.26.39-PM-2-768x134.png 768w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption id="caption-attachment-58" class="wp-caption-text">图片近乎平行的代码</figcaption></figure>
<figure id="attachment_43" aria-describedby="caption-attachment-43" style="width: 240px" class="wp-caption alignleft"><img loading="lazy" decoding="async" class="wp-image-43 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png" alt="暗中观察 表情包" width="240" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2.png 240w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.29-PM-2-150x150.png 150w" sizes="(max-width: 240px) 100vw, 240px" /><figcaption id="caption-attachment-43" class="wp-caption-text">暗中观察</figcaption></figure>
<div style="float: left;">
<figure id="attachment_44" aria-describedby="caption-attachment-44" style="width: 244px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-44 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png" alt="给我五块钱 表情包" width="244" height="242" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2.png 244w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.51.58-PM-2-150x150.png 150w" sizes="(max-width: 244px) 100vw, 244px" /><figcaption id="caption-attachment-44" class="wp-caption-text">Give Me Five</figcaption></figure>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">通过上面可以看到发布之后虽然第二张图片没有特别靠左，但是它也算和第一张图片<span style="color: #0000ff;">几乎</span>在一条线上了。不过并不是挨着，也不是平行（另外你可能需要多摁几下回车让文字可以靠下。）。小生才疏学浅，只能做到这个地步。自愧不如。（感觉满满都是bug T_T）</p>
<p>要滚去吃饭了，就酱</p>
<p><a href="https://i0oo0.com/2019/02/19/wordpress%e5%b0%86%e4%b8%a4%e5%bc%a0%e5%9b%be%e7%89%87%e5%b9%b6%e6%8e%92/">WordPress将两张图片并排（待改进）</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/02/19/wordpress%e5%b0%86%e4%b8%a4%e5%bc%a0%e5%9b%be%e7%89%87%e5%b9%b6%e6%8e%92/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress中文用户名报错</title>
		<link>https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/</link>
					<comments>https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/#respond</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Tue, 19 Feb 2019 21:25:18 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[报错]]></category>
		<category><![CDATA[注册]]></category>
		<category><![CDATA[用户名]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=10</guid>

					<description><![CDATA[<p>				可是WordPress默认会认定除了英文字母、数字和标点之外的用户名都是不规范的。所以并不会允许注册。会告诉你“错误：此用户名包含无效字符，请输入有效的用户名。”<br />
已经存在的中文名，在修改资料的时候也会发生问题：WordPress会对中文视而不见，它会认为你的用户名是空的，告诉你“不能创建登录名为空的用户。”		</p>
<p><a href="https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/">WordPress中文用户名报错</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>				在安装WordPress的时候，管理员用户名选择了中文。这样做可以防止有坏人暴力破解密码，例如当用户名设置为Admin或Administrator之类默认的时候，基本会成为低成本黑客的众矢之的。基本操作就是他们手里大概有成千上万的IP号，有可能是买的IP号，也有可能是用病毒污染防御力低的电脑进而控制它们、不过大部分是通过VPN、http代理等不断改变IP。然后他们用这些IP号去不断尝试密码，一个IP号可能试3次就会被暂时冻结，不过黑客可以源源不断的轮流换IP去试，就很危险。但是如果黑客不知道你的用户名，那他就需要先试你的用户名，例如Jack、Lily之类常用的名字。这个时候如果选一个中文用户名就会大大增加破解的难度，有了用户名还要从头开始试密码，低成本黑客八成就会望而却步。i0oo0</p>
<p>可是WordPress默认会认定除了<span style="color: #3366ff;">英文字母</span>、<span style="color: #3366ff;">数字</span>和<span style="color: #3366ff;">标点</span>之外的用户名都是<span style="color: #ff0000;">不规范</span>的。所以并不会允许注册。会告诉你“错误：此用户名包含无效字符，请输入有效的用户名。”</p>
<figure id="attachment_11" aria-describedby="caption-attachment-11" style="width: 259px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-11 size-medium" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.34.46-PM-2-259x300.png" alt="中文用户名报错截图" width="259" height="300" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.34.46-PM-2-259x300.png 259w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.34.46-PM-2.png 684w" sizes="(max-width: 259px) 100vw, 259px" /><figcaption id="caption-attachment-11" class="wp-caption-text">中文用户名报错</figcaption></figure>
<p>已经存在的中文名，在修改资料的时候也会发生问题：WordPress会对中文视而不见，它会认为你的用户名是空的，告诉你“不能创建登录名为空的用户。”</p>
<figure id="attachment_12" aria-describedby="caption-attachment-12" style="width: 300px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-medium wp-image-12" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.39.04-PM-2-300x179.png" alt="用户名为空错误的截图" width="300" height="179" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.39.04-PM-2-300x179.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.39.04-PM-2.png 530w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-12" class="wp-caption-text">“用户名为空”错误</figcaption></figure>
<h4><span style="color: #008000;">解决方法是：</span></h4>
<p>打开你的博客对应的文件目录，可以是在线文件管理，也可以通过FTP或者SFTP等途径连接到服务器。在博客目录下打开<span style="color: #ff0000;"><strong>wp-includes</strong></span>那个文件夹，找到<span style="color: #ff0000;"><strong>formatting.php</strong></span>这个文件然后编辑它，摁下command+F (Windows应该是control+F)进行搜索，找到<span style="color: #ff0000;"><strong>function sanitize_user( $username, $strict = false ) {</strong></span> 这一行，然后再下面紧挨着写一句指令<strong><span style="color: #ff0000;">$strict = false;</span></strong> （意思就是让WordPress不要太严肃嘛，任何用户名都是欢迎滴）然后保存就可以了。</p>
<figure id="attachment_13" aria-describedby="caption-attachment-13" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-13 size-large" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.56.42-PM-2-1024x340.png" alt="添加代码后的截图" width="640" height="213" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.56.42-PM-2-1024x340.png 1024w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.56.42-PM-2-300x100.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.56.42-PM-2-768x255.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.56.42-PM-2.png 1254w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption id="caption-attachment-13" class="wp-caption-text">添加代码的截图</figcaption></figure>
<p>从此之后，注册用户名，修改资料，就都可以使用中文用户名了</p>
<div style="float: left;">
<figure id="attachment_14" aria-describedby="caption-attachment-14" style="width: 300px" class="wp-caption alignleft"><img loading="lazy" decoding="async" class="size-medium wp-image-14" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.59.46-PM-2-300x182.png" alt="资料修改成功截图" width="300" height="182" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.59.46-PM-2-300x182.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-2.59.46-PM-2.png 304w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-14" class="wp-caption-text">个人资料修改成功</figcaption></figure>
<div style="float: left;">
<figure id="attachment_15" aria-describedby="caption-attachment-15" style="width: 300px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-medium wp-image-15" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.00.40-PM-2-300x280.png" alt="中文用户名注册成功截图" width="300" height="280" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.00.40-PM-2-300x280.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-19-at-3.00.40-PM-2.png 738w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-15" class="wp-caption-text">中文用户名注册成功</figcaption></figure>
</div>
<p>就酱。</p>
</div>
<p><a href="https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/">WordPress中文用户名报错</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/02/19/wordpress%e4%b8%ad%e6%96%87%e7%94%a8%e6%88%b7%e5%90%8d%e6%8a%a5%e9%94%99/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
