CentOS 8使用笔记

查看磁盘空间

df -h

查看python版本

python3 --version

查看某个端口是否打开

nc -zv localhost 9200

或者

curl http://localhost:9200

查看所有打开的端口并将部分端口升序排列

ss -tuln | awk 'NR>1' | sort -k 2,2n -k 1,1

添加端口并刷新

firewall-cmd --zone=public --add-port=9200/tcp --permanent
firewall-cmd --reload

启动Elasic Search服务,进入ES对应的bin目录,执行:

./elasticsearch

linux操作系统不能识别在windows操作系统中用Pycharm构建的venv
Linux operating systems cannot directly recognize a Python virtual environment (venv) created in Windows due to differences in file paths and executable formats between the two operating systems. When moving a project from Windows to Linux, you would typically need to recreate the virtual environment on the Linux system. This involves copying your project files (excluding the venv directory) to the Linux system, and then running python -m venv venv and pip install -r requirements.txt commands in your project directory on the Linux system to recreate the environment and install all required dependencies.

相关推荐

  1. CentOS 8使用笔记

    2024-03-10 16:28:03       19 阅读
  2. Centos8 使用编译安装nginx

    2024-03-10 16:28:03       18 阅读
  3. docker学习笔记8centos docker安装redis

    2024-03-10 16:28:03       10 阅读
  4. centos 8 部署nextCloud

    2024-03-10 16:28:03       50 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-10 16:28:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-10 16:28:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-10 16:28:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-10 16:28:03       18 阅读

热门阅读

  1. CCF-CSP真题201403-2《窗口》(结构体+数组)

    2024-03-10 16:28:03       17 阅读
  2. misc40

    misc40

    2024-03-10 16:28:03      19 阅读
  3. python实现回溯算法

    2024-03-10 16:28:03       21 阅读
  4. Svelte之基础知识一

    2024-03-10 16:28:03       24 阅读
  5. 读书·基于RISC-V和FPGA的嵌入式系统设计·第3章

    2024-03-10 16:28:03       21 阅读
  6. pytorch升级打怪(一)

    2024-03-10 16:28:03       22 阅读
  7. 力扣77-组合

    2024-03-10 16:28:03       23 阅读
  8. 设计模式之单例模式

    2024-03-10 16:28:03       21 阅读