-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2e5c45
commit 776a181
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _check_shared_libray_is_used: | ||
|
||
================================ | ||
检查共享库是否使用 | ||
================================ | ||
|
||
在生产环境中常有一些遗留系统,由于年代久远,运行的安装目录下堆积了很多不确定是否使用的第三方 ``.so`` 库文件。但是由于迁移操作系统或者修改架构( 例如迁移到 :ref:`arm` ),需要确定这些 ``.so`` 是否也需要同样迁移(或编译对应架构的 ``.so`` 库文件)。 | ||
|
||
这里有一个简单的方法,就是在现有有业务的服务器上通过 ``lsof`` 来确认这些 ``.so`` 库文件是否被系统进程使用(打开)。原理很简单,就是 :ref:`linux_file_descriptor` 能够确认某个系统文件是否被真实使用 | ||
|
||
举例,在 :ref:`apache_webdav` 会启用 ``mod_dav`` 和 ``mod_dav_fs`` 模块:: | ||
|
||
/usr/lib/apache2/modules/mod_dav_fs.so | ||
/usr/lib/apache2/modules/mod_dav.so | ||
|
||
参考 | ||
======= | ||
|
||
- `How to see the currently loaded shared objects in Linux? <https://superuser.com/questions/310199/how-to-see-the-currently-loaded-shared-objects-in-linux>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _run_pyton_in_browser: | ||
|
||
============================== | ||
在浏览器中运行Python | ||
============================== | ||
|
||
`莫烦Python > Python基础 > 交互式学Python > 课程介绍 <https://mofanpy.com/tutorials/python-basic/interactive-python/introduction>`_ 提到了采用 `Pyodide <https://pyodide.org/>`_ 来实现在浏览器中学习Python。这是一个有趣的话题,你可以参考 `Running Python in the Browser <https://yasoob.me/2019/05/22/running-python-in-the-browser/>`_ 采用不同的解决方案实现: | ||
|
||
- `Transcrypt <https://www.transcrypt.org/>`_ | ||
- `Brython <https://brython.info/>`_ | ||
- `Skulpt <https://skulpt.org/>`_ | ||
- `PyPy.jsis <https://pypyjs.org/>`_ | ||
- `Batavia <https://pybee.org/batavia>`_ | ||
- `Pyodide <https://pyodide.org/>`_ Mozilla开发的类似 :ref:`jupyter` 的浏览器工具,结合了 WebAssembly CPython 项目以及NumPy,SciPy,Matplotlib和Pandas到WebAssembly | ||
|
||
参考 | ||
====== | ||
|
||
- `Running Python in the Browser <https://yasoob.me/2019/05/22/running-python-in-the-browser/>`_ |