随笔分类 -  Ubuntu

摘要:在 AWS 的 Linux 系统上安装 Conda 的步骤如下: 下载 Miniconda 首先,在您的 AWS Linux 系统中打开终端或 SSH 连接。在终端中输入以下命令下载 Miniconda 安装包: wget https://repo.anaconda.com/miniconda/Mi 阅读全文
posted @ 2024-04-03 14:19  ̄□ ̄ 编辑
摘要:nginx 文档 参数介绍: http://shouce.jb51.net/nginx-doc/Text/3.1_httpcore.html nginx 优化 由于业务场景需要,近期将生产环境由阿里云的 SLB 更换为自建 nginx,之前在测试环境使用了一段时间一直没有问题,但是上周上到生产后出现 阅读全文
posted @ 2022-01-06 17:31  ̄□ ̄ 阅读(309) 评论(0) 推荐(0) 编辑
摘要:安装nginx: apt-get install nginx #如果是使用本机安装测试,由于默认不是最高权限使用以下命令即可: sudo apt-get install nginx 安装uwsgi: linux 安装: apt-get install build-essential python-d 阅读全文
posted @ 2021-12-14 17:54  ̄□ ̄ 阅读(178) 评论(0) 推荐(0) 编辑
摘要:报错: Exception: Traceback (most recent call last): File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = 阅读全文
posted @ 2020-08-17 17:22  ̄□ ̄ 阅读(5430) 评论(0) 推荐(1) 编辑
摘要:Mac 查看本机公网IP 命令 curl ifconfig.me 如果想更好看一点 curl ipinfo.io/json 还可以用wget wget http://ipecho.net/plain -O - -q ; echo wget http://observebox.com/ip -O - 阅读全文
posted @ 2020-05-11 13:57  ̄□ ̄ 阅读(975) 评论(0) 推荐(0) 编辑
摘要:conda install gdal 阅读全文
posted @ 2020-05-09 19:18  ̄□ ̄ 阅读(462) 评论(0) 推荐(0) 编辑
摘要:Nginx 是 linux 环境下常用的 web server之一,了解他的使用方法很重要。 安装 $ sudo apt-get install nginx 安装之后,以下是几个和 Nginx 相关的重要文件路径 Nginx 服务相关的操作 启动 $ sudo service nginx start 阅读全文
posted @ 2020-02-17 14:36  ̄□ ̄ 阅读(683) 评论(0) 推荐(0) 编辑
摘要:参考ssh支持配置 man ssh_config 配置模板 vim ~/.ssh/config Host <别名> Port <机器端口号> IdentityFile <密钥的绝对路径> HostName <机器路径> User <机器用户名> 如果是密码连接 Host <_别名> Port <机器 阅读全文
posted @ 2019-10-22 17:36  ̄□ ̄ 阅读(554) 评论(0) 推荐(1) 编辑
摘要:cat /etc/security/limits.confsudo vim /etc/security/limits.conf * hard nofile 999999 * soft nofile 999999 * soft nproc 10240 * hard nproc 10240 * hard stack 102400 * soft stack 102400 阅读全文
posted @ 2019-09-19 15:24  ̄□ ̄ 阅读(600) 评论(1) 推荐(1) 编辑
摘要:Crontab命令使用 crontab 是用来让使用者(用户)在固定时间或固定间隔(即既定时间设置内)执行应用程序或代码。 crontab file [-u user] -用指定的文件替代目前的crontab. crontab -[-u user] -用标准输入替代目前的crontab. cront 阅读全文
posted @ 2019-09-11 17:40  ̄□ ̄ 阅读(413) 评论(0) 推荐(1) 编辑
摘要:版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/weixin_40101530/article/details/78848525 1.导入包管理系统使用的公钥 sudo apt-key a 阅读全文
posted @ 2019-09-02 17:41  ̄□ ̄ 阅读(246) 评论(0) 推荐(0) 编辑
摘要:Docker 是一个开源项目,为开发者和系统管理员提供了一个开放的平台,在任何地方通过打包和运行应用程序作为一个轻量级的容器。Docker 在软件容器内自动部署应用程序。Docker 最开始由 Solomon Hykes 作为 dotCloud 一个内部开发项目,一个企业级的 PaaS (platf 阅读全文
posted @ 2019-09-02 10:53  ̄□ ̄ 阅读(727) 评论(0) 推荐(0) 编辑
摘要:sudo vim /etc/security/limits.conf 文件下加: * hard nofile 999999 * soft nofile 999999 * soft nproc 10240 * hard nproc 10240 * hard stack 102400 * soft st 阅读全文
posted @ 2019-08-21 17:46  ̄□ ̄ 阅读(609) 评论(0) 推荐(0) 编辑
摘要:05 Jul python获取linux系统内存、cpu、网络使用情况 做个程序需要用到系统的cpu、内存、网络的使用情况,百度之后发现目前使用python获取这些信息大多是调用系统命令(top、free等)。其实多linux命令也是读取/proc下的文件实现的,索性不如自己写一个。 一、计算cpu 阅读全文
posted @ 2019-07-08 16:17  ̄□ ̄ 阅读(6495) 评论(0) 推荐(0) 编辑
摘要:ubuntu经常用要添加PPA源,就是使用如下命令: sudo add-apt-repository ppa:XXX 但不知什么时候开始,就出现了错误Error: No module named 'apt_pkg' 。 这个问题困扰我好久了,每次想解决,在网上忙活半天都没有找到解决办法。 今天我找到 阅读全文
posted @ 2019-06-12 17:44  ̄□ ̄ 阅读(12328) 评论(7) 推荐(3) 编辑
摘要:1、运行.sh文件 直接用./sh 文件就可以运行,但是如果想后台运行,即使关闭当前的终端也可以运行的话,需要nohup命令和&命令。 (1)&命令 功能:加在一个命令的最后,可以把这个命令放在后台执行 (2)nohup命令 功能:不挂断的运行命令 2、查看当前后台运行的命令 有两个命令可以用,jo 阅读全文
posted @ 2019-06-03 10:27  ̄□ ̄ 阅读(13208) 评论(0) 推荐(1) 编辑
摘要:sudo apt-get updatesudo apt-get install redis-server mongodb sudo apt-get install htopsudo apt-get install iotop sudo redis-server redis.conf<指定配置文件启动 阅读全文
posted @ 2019-05-30 19:27  ̄□ ̄ 阅读(281) 评论(0) 推荐(0) 编辑
摘要:准备 在学习本教程之前,请确保完成以下先决条件: Ubuntu 14.04 腾讯云CVM。 一台已经设置好可以使用sudo命令的非root账号的Ubuntu服务器,并且已开启防火墙。没有服务器的同学可以在这里购买,不过我个人更推荐您使用免费的腾讯云开发者实验室进行试验,学会安装后再购买服务器。 在U 阅读全文
posted @ 2019-05-30 12:49  ̄□ ̄ 阅读(1437) 评论(0) 推荐(0) 编辑
摘要:Ubuntu16.04默认安装了Python2.7和3.5 安装Python2+: sudo apt-get install python 请注意,系统自带的python千万不能卸载! 输入命令python 按Ctrl+D退出python命令行 输入命令sudo add-apt-repository 阅读全文
posted @ 2019-05-29 18:50  ̄□ ̄ 编辑

点击右上角即可分享
微信分享提示