<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[解决方案]macbook下面root使用ln：无法创建符号链接/usr/bin/python：权限不够，MAC /usr/bin/目录下 Operation not permitted的解决。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Sun, 04 Dec 2022 17:02:12 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Mac系统 解决 python: No such file or directory<br/>ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>python&nbsp;&nbsp;#无法解决<br/>zsh: no such file or directory: /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9 #在PATH里面有上面的软链接，但还是指向这个最新的py地址<br/>/usr/local/bin/runlike&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #得把它加到环境变量中去没用，还是指向上面最新的。<br/>which python<br/>python: aliased to /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9&nbsp;&nbsp;#aliased指向了最新的<br/>果然如此，vim ~/.zshrc：<br/>alias python=&quot;/usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9&quot;<br/>alias pip=&quot;/usr/local/Cellar/python@3.9/3.9.13_3/bin/pip3.9&quot;<br/>alias pip3=&quot;/usr/local/Cellar/python@3.8/3.8.9/bin/pip3.8&quot;<br/>alias pip3.8=&quot;/usr/local/Cellar/python@3.8/3.8.9/bin/pip3.8&quot;<br/>alias pip3.9=&quot;/usr/local/Cellar/python@3.9/3.9.13_3/bin/pip3.9&quot;<br/><br/>修改为就好了：<br/>alias python=&quot;/usr/local/Cellar/python@3.9/3.9.14/bin/python3.9&quot;<br/>alias pip=&quot;/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9&quot;<br/>alias pip3=&quot;/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9&quot;<br/>alias pip3.8=&quot;/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9&quot;<br/>alias pip3.9=&quot;/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9&quot;<br/><br/>ls /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9<br/>ls: /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9: No such file or directory #因升级更新Mac新版本系统后没有了。<br/><br/>位置：/usr/bin&nbsp;&nbsp; sudo cp -rf python3 python<br/>cp: python: Operation not permitted<br/><br/>ln -s&nbsp;&nbsp;/usr/bin/python3 /usr/bin/python<br/>ln: /usr/bin/python: Operation not permitted<br/><br/><br/><br/><br/><br/>原因：系统保护机制<br/>Disabling SIP<br/>It&#039;s also possible to disable System Integrity Protection, but it&#039;s generally best to leave it on and do customization in more appropriate locations.<br/>https://stackoverflow.com/questions/36730549/cannot-create-a-symlink-inside-of-usr-bin-even-as-sudo<br/><br/>Restart the system -&gt; long press cmd + R.&nbsp;&nbsp;select a terminal from utilities menu type the following command csrutil disable close terminal and restart system.<br/><br/>来自：https://stackoverflow.com/questions/36730549/cannot-create-a-symlink-inside-of-usr-bin-even-as-sudo<br/><br/>MAC /usr/bin/目录下 Operation not permitted的解决<br/>mac系统下的Rootless机制，让我们在root权限下也不能随心所欲的读写所有路径了，特殊情况下我们需要关闭Rootless时，可尝试如下操作：<br/>1. 重启按住 Command+R，进入恢复模式，打开Terminal。<br/>2. 键入命令 csrutil disable<br/>3. reboot<br/>Rootless机制是对抗恶意程序的最后防线，除非特殊需要时我们才将其关闭，否则保持开启状态<br/>csrutil enable<br/><br/>原文链接：https://blog.csdn.net/king457757706/article/details/70671250
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [解决方案]macbook下面root使用ln：无法创建符号链接/usr/bin/python：权限不够，MAC /usr/bin/目录下 Operation not permitted的解决。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>