Manjaro Linux平台用pyinstaller打包python可执行文件

技术背景

当我们创建一个python项目,最终的成果如果希望用户能够不依赖于python源代码也能够正常的执行,就会比较的人性化。因为源代码数量众多,很难让每个用户都自行管理所有的源代码,因此我们需要对源码进行编译构建。对于使用场景不是很复杂的,我们可以直接做成一个可执行文件,这样开发者只需要维护可执行文件的功能正常,以及对于各种平台的兼容性较好,这就可以了。这里我们介绍如何使用pyinstaller去通过python源码构造一个可执行文件。

pyinstaller的安装

我们还是正常的使用pip来进行python包的管理即可:

[dechin@dechin-manjaro installer]$ python3 -m pip install pyinstaller
Collecting pyinstaller
  Downloading pyinstaller-4.2.tar.gz (3.6 MB)
     |████████████████████████████████| 3.6 MB 18 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pyinstaller-hooks-contrib>=2020.6
  Downloading pyinstaller_hooks_contrib-2021.1-py2.py3-none-any.whl (181 kB)
     |████████████████████████████████| 181 kB 13 kB/s 
Collecting altgraph
  Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in /home/dechin/anaconda3/lib/python3.8/site-packages (from pyinstaller) (50.3.1.post20201107)
Building wheels for collected packages: pyinstaller
  Building wheel for pyinstaller (PEP 517) ... done
  Created wheel for pyinstaller: filename=pyinstaller-4.2-py3-none-any.whl size=2413076 sha256=29c4148e9bcda0a6b08f10c1ee3c48f3dd90992787d01b54d1e920b5954f8fd4
  Stored in directory: /home/dechin/.cache/pip/wheels/65/6f/54/0f682e8590de992d07a17ce07282267734cb150e537dfc4390
Successfully built pyinstaller
Installing collected packages: pyinstaller-hooks-contrib,altgraph,pyinstaller
Successfully installed altgraph-0.17 pyinstaller-4.2 pyinstaller-hooks-contrib-2021.1

下载安装成功后,可以运行帮助命令来测试一下:

[dechin@dechin-manjaro installer]# pyinstaller -h
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
                   [--add-data <SRC;DEST or SRC:DEST>]
                   [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR]
                   [--hidden-import MODULENAME] [--additional-hooks-dir HOOKSPATH]
                   [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--key KEY]
                   [-d {all,imports,bootloader,noarchive}] [-s] [--noupx]
                   [--upx-exclude FILE] [-c] [-w]
                   [-i <FILE.ico or FILE.exe,ID or FILE.icns or "NONE">]
                   [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE] [--uac-admin]
                   [--uac-uiaccess] [--win-private-assemblies] [--win-no-prefer-redirects]
                   [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--runtime-tmpdir PATH]
                   [--bootloader-ignore-signals] [--distpath DIR] [--workpath WORKPATH]
                   [-y] [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
                   scriptname [scriptname ...]

positional arguments:
  scriptname            name of scriptfiles to be processed or exactly one .spec-file. If
                        a .spec-file is specified,most options are unnecessary and are
                        ignored.

optional arguments:
  -h,--help            show this help message and exit
  -v,--version         Show program version info and exit.
  --distpath DIR        Where to put the bundled app (default: ./dist)
  --workpath WORKPATH   Where to put all the temporary work files,.log,.pyz and etc.
                        (default: ./build)
  -y,--noconfirm       Replace output directory (default: SPECPATH/dist/SPECNAME) without
                        asking for confirmation
  --upx-dir UPX_DIR     Path to UPX utility (default: search the execution path)
  -a,--ascii           Do not include unicode encoding support (default: included if
                        available)
  --clean               Clean PyInstaller cache and remove temporary files before
                        building.
  --log-level LEVEL     Amount of detail in build-time console messages. LEVEL may be one
                        of TRACE,DEBUG,INFO,WARN,ERROR,CRITICAL (default: INFO).

What to generate:
  -D,--onedir          Create a one-folder bundle containing an executable (default)
  -F,--onefile         Create a one-file bundled executable.
  --specpath DIR        Folder to store the generated spec file (default: current
                        directory)
  -n NAME,--name NAME  Name to assign to the bundled app and spec file (default: first
                        script's basename)

What to bundle,where to search:
  --add-data <SRC;DEST or SRC:DEST>
                        Additional non-binary files or folders to be added to the
                        executable. The path separator is platform specific,``os.pathsep`` (which is ``;`` on Windows and ``:`` on most unix
                        systems) is used. This option can be used multiple times.
  --add-binary <SRC;DEST or SRC:DEST>
                        Additional binary files to be added to the executable. See the
                        ``--add-data`` option for more details. This option can be used
                        multiple times.
  -p DIR,--paths DIR   A path to search for imports (like using PYTHONPATH). Multiple
                        paths are allowed,separated by ':',or use this option multiple
                        times
  --hidden-import MODULENAME,--hiddenimport MODULENAME
                        Name an import not visible in the code of the script(s). This
                        option can be used multiple times.
  --additional-hooks-dir HOOKSPATH
                        An additional path to search for hooks. This option can be used
                        multiple times.
  --runtime-hook RUNTIME_HOOKS
                        Path to a custom runtime hook file. A runtime hook is code that is
                        bundled with the executable and is executed before any other code
                        or module to set up special features of the runtime environment.
                        This option can be used multiple times.
  --exclude-module EXCLUDES
                        Optional module or package (the Python name,not the path name)
                        that will be ignored (as though it was not found). This option can
                        be used multiple times.
  --key KEY             The key used to encrypt Python bytecode.

How to generate:
  -d {all,noarchive},--debug {all,noarchive}
                        Provide assistance with debugging a frozen
                        application. This argument may be provided multiple
                        times to select several of the following options.
                        
                        - all: All three of the following options.
                        
                        - imports: specify the -v option to the underlying
                          Python interpreter,causing it to print a message
                          each time a module is initialized,showing the
                          place (filename or built-in module) from which it
                          is loaded. See
                          https://docs.python.org/3/using/cmdline.html#id4.
                        
                        - bootloader: tell the bootloader to issue progress
                          messages while initializing and starting the
                          bundled app. Used to diagnose problems with
                          missing imports.
                        
                        - noarchive: instead of storing all frozen Python
                          source files as an archive inside the resulting
                          executable,store them as files in the resulting
                          output directory.
                        
  -s,--strip           Apply a symbol-table strip to the executable and shared libs (not
                        recommended for Windows)
  --noupx               Do not use UPX even if it is available (works differently between
                        Windows and *nix)
  --upx-exclude FILE    Prevent a binary from being compressed when using upx. This is
                        typically used if upx corrupts certain binaries during
                        compression. FILE is the filename of the binary without path. This
                        option can be used multiple times.

Windows and Mac OS X specific options:
  -c,--console,--nowindowed
                        Open a console window for standard i/o (default). On Windows this
                        option will have no effect if the first script is a '.pyw' file.
  -w,--windowed,--noconsole
                        Windows and Mac OS X: do not provide a console window for standard
                        i/o. On Mac OS X this also triggers building an OS X .app bundle.
                        On Windows this option will be set if the first script is a '.pyw'
                        file. This option is ignored in *NIX systems.
  -i <FILE.ico or FILE.exe,ID or FILE.icns or "NONE">,--icon <FILE.ico or FILE.exe,ID or FILE.icns or "NONE">
                        FILE.ico: apply that icon to a Windows executable. FILE.exe,ID,extract the icon with ID from an exe. FILE.icns: apply the icon to
                        the .app bundle on Mac OS X. Use "NONE" to not apply any icon,thereby making the OS to show some default (default: apply
                        PyInstaller's icon)

Windows specific options:
  --version-file FILE   add a version resource from FILE to the exe
  -m <FILE or XML>,--manifest <FILE or XML>
                        add manifest FILE or XML to the exe
  -r RESOURCE,--resource RESOURCE
                        Add or update a resource to a Windows executable. The RESOURCE is
                        one to four items,FILE[,TYPE[,NAME[,LANGUAGE]]]. FILE can be a
                        data file or an exe/dll. For data files,at least TYPE and NAME
                        must be specified. LANGUAGE defaults to 0 or may be specified as
                        wildcard * to update all resources of the given TYPE and NAME. For
                        exe/dll files,all resources from FILE will be added/updated to
                        the final executable if TYPE,NAME and LANGUAGE are omitted or
                        specified as wildcard *.This option can be used multiple times.
  --uac-admin           Using this option creates a Manifest which will request elevation
                        upon application restart.
  --uac-uiaccess        Using this option allows an elevated application to work with
                        Remote Desktop.

Windows Side-by-side Assembly searching options (advanced):
  --win-private-assemblies
                        Any Shared Assemblies bundled into the application will be changed
                        into Private Assemblies. This means the exact versions of these
                        assemblies will always be used,and any newer versions installed
                        on user machines at the system level will be ignored.
  --win-no-prefer-redirects
                        While searching for Shared or Private Assemblies to bundle into
                        the application,PyInstaller will prefer not to follow policies
                        that redirect to newer versions,and will try to bundle the exact
                        versions of the assembly.

Mac OS X specific options:
  --osx-bundle-identifier BUNDLE_IDENTIFIER
                        Mac OS X .app bundle identifier is used as the default unique
                        program name for code signing purposes. The usual form is a
                        hierarchical name in reverse DNS notation. For example:
                        com.mycompany.department.appname (default: first script's
                        basename)

Rarely used special options:
  --runtime-tmpdir PATH
                        Where to extract libraries and support files in `onefile`-mode. If
                        this option is given,the bootloader will ignore any temp-folder
                        location defined by the run-time OS. The ``_MEIxxxxxx``-folder
                        will be created here. Please use this option only if you know what
                        you are doing.
  --bootloader-ignore-signals
                        Tell the bootloader to ignore signals rather than forwarding them
                        to the child process. Useful in situations where e.g. a supervisor
                        process signals both the bootloader and child (e.g. via a process
                        group) to avoid signalling the child twice.

如果觉得这份官方的帮助文档过于冗余,可以参考下一个章节中的缩略版帮助文档。

构造python测试实例

因为可执行文件的自身内容都是固定的,只能通过配置文件或者是命令行的输入参数来进行传参,因此我们构造python文件的时候主要从命令行的这个角度来出发,通过读取命令行的输入参数来决定python项目的输出。我们这里构造的是一个名为pye的项目,意思是python executable,也就是可执行的python项目,项目的功能是计算一个入参的平方:

# pye.py

import sys

if sys.argv[1] == '-h':
    print ('pye: Test the executable python project')
    print (' -h')
    print ('\t The help message of pye.')
    print (' -p2 number')
    print ('\t Calculate the power to of input number.')

if sys.argv[1] == '-p2':
    print ('The power2 of number {} is : {}'.format(sys.argv[2],float(sys.argv[2]) ** 2))

在上述构造中我们区分了-h-p2两种参数类型,其中-h是指帮助文档,输出如下所示:

[dechin@dechin-manjaro installer]$ python3 pye.py -h
pye: Test the executable python project
 -h
         The help message of pye.
 -p2 number
         Calculate the power to of input number.

-p2是标识需要计算平方的入参的参数:

[dechin@dechin-manjaro installer]$ python3 pye.py -p2 2
The power2 of number 2 is : 4.0
[dechin@dechin-manjaro installer]$ python3 pye.py -p2 5
The power2 of number 5 is : 25.0

pyinstaller简单示例

由于官方的帮助文档内容太多,不太方便入门,这里我们找了一份简单常用的总结文档(表格来自于参考链接1):


了解了基本的使用方法之后,可以针对我们上述编写的pye.py的项目进行编译构建:

[dechin@dechin-manjaro installer]$ pyinstaller -F pye.py --clean
754 INFO: PyInstaller: 4.2
754 INFO: Python: 3.8.5 (conda)
791 INFO: Platform: Linux-5.9.16-1-MANJARO-x86_64-with-glibc2.10
791 INFO: wrote /home/dechin/projects/2021-python/installer/pye.spec
794 INFO: UPX is not available.
795 INFO: Removing temporary files and cleaning cache in /home/dechin/.cache/pyinstaller
795 INFO: Extending PYTHONPATH with paths
['/home/dechin/projects/2021-python/installer','/home/dechin/projects/2021-python/installer']
808 INFO: checking Analysis
808 INFO: Building Analysis because Analysis-00.toc is non existent
808 INFO: Initializing module dependency graph...
810 INFO: Caching module graph hooks...
813 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
814 INFO: Analyzing base_library.zip ...
2945 INFO: Processing pre-find module path hook distutils from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
2946 INFO: distutils: retargeting to non-venv dir '/home/dechin/anaconda3/lib/python3.8'
5397 INFO: Caching module dependency graph...
5466 INFO: running Analysis Analysis-00.toc
5487 INFO: Analyzing /home/dechin/projects/2021-python/installer/pye.py
5489 INFO: Processing module hooks...
5489 INFO: Loading module hook 'hook-encodings.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5526 INFO: Loading module hook 'hook-pickle.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5528 INFO: Excluding import of argparse from module pickle
5528 INFO: Loading module hook 'hook-difflib.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5529 INFO: Excluding import of doctest from module difflib
5529 INFO: Loading module hook 'hook-xml.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5600 INFO: Loading module hook 'hook-sysconfig.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5609 INFO: Loading module hook 'hook-_tkinter.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5693 INFO: checking Tree
5693 INFO: Building Tree because Tree-00.toc is non existent
5693 INFO: Building Tree Tree-00.toc
5699 INFO: checking Tree
5699 INFO: Building Tree because Tree-01.toc is non existent
5699 INFO: Building Tree Tree-01.toc
5733 INFO: checking Tree
5733 INFO: Building Tree because Tree-02.toc is non existent
5734 INFO: Building Tree Tree-02.toc
5736 INFO: Loading module hook 'hook-distutils.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5736 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5737 INFO: Loading module hook 'hook-lib2to3.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5757 INFO: Loading module hook 'hook-heapq.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5759 INFO: Excluding import of doctest from module heapq
5759 INFO: Loading module hook 'hook-distutils.util.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5760 INFO: Excluding import of lib2to3.refactor from module distutils.util
5760 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks'...
5761 INFO: Excluding import of test from module multiprocessing.util
5761 INFO: Excluding import of test.support from module multiprocessing.util
5768 INFO: Looking for ctypes DLLs
5791 INFO: Analyzing run-time hooks ...
5794 INFO: Including run-time hook '/home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
5799 INFO: Looking for dynamic libraries
6299 INFO: Looking for eggs
6300 INFO: Python library not in binary dependencies. Doing additional searching...
6315 INFO: Using Python library /home/dechin/anaconda3/lib/libpython3.8.so.1.0
6321 INFO: Warnings written to /home/dechin/projects/2021-python/installer/build/pye/warn-pye.txt
6352 INFO: Graph cross-reference written to /home/dechin/projects/2021-python/installer/build/pye/xref-pye.html
6361 INFO: checking PYZ
6361 INFO: Building PYZ because PYZ-00.toc is non existent
6361 INFO: Building PYZ (ZlibArchive) /home/dechin/projects/2021-python/installer/build/pye/PYZ-00.pyz
6647 INFO: Building PYZ (ZlibArchive) /home/dechin/projects/2021-python/installer/build/pye/PYZ-00.pyz completed successfully.
6649 INFO: checking PKG
6650 INFO: Building PKG because PKG-00.toc is non existent
6650 INFO: Building PKG (CArchive) PKG-00.pkg
10882 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
10883 INFO: Bootloader /home/dechin/anaconda3/lib/python3.8/site-packages/PyInstaller/bootloader/Linux-64bit/run
10883 INFO: checking EXE
10884 INFO: Building EXE because EXE-00.toc is non existent
10884 INFO: Building EXE from EXE-00.toc
10884 INFO: Appending archive to ELF section in EXE /home/dechin/projects/2021-python/installer/dist/pye
10914 INFO: Building EXE from EXE-00.toc completed successfully.

执行成功编译构建的方法之后,会在本地产生一些编译的路径,如build和dist等,完整的路径和文件清单如下所示:

[dechin@dechin-manjaro installer]$ tree
.
├── build
│   └── pye
│       ├── Analysis-00.toc
│       ├── base_library.zip
│       ├── EXE-00.toc
│       ├── PKG-00.pkg
│       ├── PKG-00.toc
│       ├── PYZ-00.pyz
│       ├── PYZ-00.toc
│       ├── Tree-00.toc
│       ├── Tree-01.toc
│       ├── Tree-02.toc
│       ├── warn-pye.txt
│       └── xref-pye.html
├── dist
│   └── pye
├── __pycache__
│   └── pye.cpython-38.pyc
├── pye.py
└── pye.spec

4 directories,16 files

我们可以看到在dist目录下有一个单独的可执行文件,这个就是我们最终想要的文件了。我们可以在dist目录下执行运行这个文件:

[dechin@dechin-manjaro dist]$ ./pye -h
pye: Test the executable python project
 -h
         The help message of pye.
 -p2 number
         Calculate the power to of input number.
[dechin@dechin-manjaro dist]$ ./pye -p2 5
The power2 of number 5 is : 25.0

经过验证所有的功能都正常。那么最后还缺一步,就是我们如果想要通过项目名 -参数表示 参数这样的方法来运行我们的项目的话,就需要把这个可执行文件添加到系统路径中。最常用的方法其实是直接将该可执行文件拷贝到/usr/bin/目录下,这样该可执行文件就可以直接使用,不需要在前面加上路径就能运行。当然,为了执行这个操作,我们首先需要切换到root帐号下,再执行文件拷贝操作:

[dechin-root dist]# cp pye /usr/bin/

拷贝完成后,直接运行:

[dechin-root dist]# pye -h
pye: Test the executable python project
 -h
         The help message of pye.
 -p2 number
         Calculate the power to of input number.
[dechin-root installer]# pye -p2 7
The power2 of number 7 is : 49.0

我们发现所有的功能都是正常的,并且在普通帐号下也是可以正常使用的。到这里为止,我们就达到了项目所预期的效果。

总结概要

通过pyinstaller我们可以将一个python项目打包编译构建成一个可执行文件,然后将该可执行文件放置到一个系统路径下,使得系统可以不需要路径也能够识别到这个可执行文件,这样我们就可以仅配置一些输入文件或者命令行的入参,来运行我们的项目。

版权声明

本文首发链接为:https://www.cnblogs.com/dechinphy/p/pyinstaller.html
作者ID:DechinPhy
更多原著文章请参考:https://www.cnblogs.com/dechinphy/

参考链接

  1. https://www.jianshu.com/p/825397df4aa0

原文地址:https://www.cnblogs.com/dechinphy

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


文章浏览阅读1.8k次,点赞63次,收藏54次。Linux下的目录权限!!!粘滞位!!!超详解!!!
文章浏览阅读1.6k次,点赞44次,收藏38次。关于Qt的安装、Windows、Linux、MacBook_mack book 安装qt
本文介绍了使用shell脚本编写一个 Hello
文章浏览阅读1.5k次,点赞37次,收藏43次。【Linux】初识Linux——了解操作系统的发展历史以及初次体验Linux编程环境
文章浏览阅读3k次,点赞34次,收藏156次。Linux超详细笔记,个人学习时很认真的记录的,觉得好的麻烦点个赞。
文章浏览阅读6.8k次,点赞109次,收藏114次。【Linux】 OpenSSH_9.3p1 升级到 OpenSSH_9.5p1(亲测无问题,建议收藏)_openssh_9.5p1
文章浏览阅读3.5k次,点赞93次,收藏78次。初识Linux中的线程,理解线程的各种概念,理解进程地址空间中的页表转换,介绍pthread线程库并理解线程库!
文章浏览阅读863次。出现此问题为Linux文件权限问题,解决方案为回到引擎目录执行命令。输入用户密码后运行./UnrealEditor。_increasing per-process limit of core file size to infinity.
文章浏览阅读2.9k次。使用文本编辑器:打开CSV文件,并使用文本编辑器(如Notepad++、Sublime Text、Visual Studio Code等)来查看文件的字符编码格式。通常在编辑器的底部状态栏或设置中可以找到当前编码的显示。请注意,上述方法并非绝对准确,特别是当文件没有明确的编码标识时。因此,如果你发现CSV文件在不同的工具或方法中显示不同的编码格式,可能需要进行进一步的分析和判断,或者尝试使用不同的编码转换方法。该命令将输出文件的MIME类型和编码信息。使用命令行工具:在命令行中,你可以使用。_shell读取csv文件逐行处理
本文介绍了如何在Linux系统中升级gcc版本,以便更好地支持C++11及以上版本的新特性。通过升级gcc,可以提升编译器的功能和性能,获得更好的开发体验。详细的步骤和方法请参考原文链接。
文章浏览阅读4.4k次,点赞6次,收藏19次。Mosquitto是一个开源的MQTT消息代理服务器。MQTT是一个轻量级的、基于发布/订阅模式的消息传输协议。 mosquitto的安装使用比较简单,可以方便的来进行一些测试。_linux mosquitto
文章浏览阅读7.2k次,点赞2次,收藏12次。Linux中,用于根目录下有一个.ssh目录,保存了ssh相关的key和一些记录文件。_~/.ssh/
文章浏览阅读4.5k次,点赞5次,收藏18次。首先需要安装 snmp ,使用下面的命令进行安装安装完毕之后,使用下面的命令查看是否安装成功当命令行显示如图即为安装成功。_snmp工具
文章浏览阅读3.5k次,点赞7次,收藏24次。本地部署和使用llama.cpp进行量化Llama2,linux和Windows平台方案,支持CPU和GPU多版本。_llama cpp gpu
文章浏览阅读1.4k次,点赞46次,收藏44次。在vim中,最为常见的有三种模式,分别是:命令模式(command mode)、插 入模式(Insert mode)和底行模式(last line mode)文件保存或退出,也可以进行文件替换,找字符串,列出行号等操作。在命令模式下,shift+: 即可进入该模 式。在进入vim后,使用 i 进入插入模式,插入模式就是vim的编辑模式,可以在vim中进行内容的编辑和修改。vim的核心模式,使用vim进入文件编辑时的最初模式,在该模式中只能移动光标和使用命令对文件内容进行编辑。
Linux常用命令大全,包括目录操作命令和文件操作命令,以及查看登录用户命令和文件内容查看命令等。
文章浏览阅读1.7k次,点赞57次,收藏50次。Yearning 简单, 高效的MYSQL 审计平台 一款MYSQL SQL语句/查询审计工具,为DBA与开发人员使用.本地部署,注重隐私,简单高效的MYSQL审计平台。下面介绍Linux 简单部署Yearning 并结合cpolar 内网穿透工具实现远程访问,破除访问限制,提高工作效率!!
文章浏览阅读1.9w次,点赞7次,收藏18次。Microsoft Edge是一款现代化的浏览器,它拥有众多功能和强大的性能,为用户带来更加流畅的浏览体验。Edge最近推出了分屏功能,支持一个窗口同时显示两个选项卡,这可以大大提高生产力和多任务处理能力。欢迎大家使用分屏及其他新功能后分享自己的使用心得与建议。首先,使用Microsoft Edge的分屏功能确实能够提高生产力,尤其是在需要同时浏览两个不同网页的情况下。分屏功能使得在一个窗口中同时显示两个选项卡,用户可以在两个网页之间快速切换,而无需打开新的窗口或使用多个浏览器窗口。_edge linux
文章浏览阅读1.8k次,点赞83次,收藏71次。C语言实现倒计时和进度条并进行演示。_linux不换行输出倒计时
文章浏览阅读1.5k次,点赞28次,收藏25次。基于嘉立创泰山派开发板,本机使用VMware+Unbuntu,编译泰山派的Linux SDK。详细教程,0基础小白可操作!内涵大量基础操作和linux基本知识。_立创泰山派sdk编译