apt

centos7 yum安装、Ubuntu1804源码编译安装NGINX 笔记

只愿长相守 提交于 2020-01-25 15:34:42
文章目录 简介: Centos 7 yum安装nginx 1.官方下载步骤: 2.EPEL源下载Nginx Ubuntu1804编译安装nginx: 1.手动加载编译环境 2.相关程序包 3.下载源码包 4.安装的先决条件 5.添加编译参数: 6.验证版本及编译参数: 7.Nginx自启动脚本配置 验证Nginx⾃启动脚本: 绝对路径启动 四大目录: conf: html: logs: sbin: 安装小记 1.PID文件位置 2.nginx启动报错范例: 命令使用示例: 简介: Nginx是当下作为流行和方便使用的 web 服务器和负载均衡器 Centos 7 yum安装nginx 1.官方下载步骤: 安装的先决条件 # sudo yum install yum-utils 要设置yum存储库,请创建/etc/yum.repos.d/nginx.repo 包含以下内容的文件 : [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx

Automating installation of tripwire via python in Linux

我们两清 提交于 2020-01-24 00:28:08
问题 I am trying to automate installation of tripwire via apt-get through Python's subprocess module in Ubuntu Linux. The problem I have is that during the installation process, Tripwire is prompting me for Postfix mail configuration, setting site.key and local.key through different set of configuration pages (see picture attached) which appear after apt-get has installed. How can I use subprocess module to interact with these pages? from subprocess import * p=Popen("apt-get install tripwire"

部署(6.前端项目)

安稳与你 提交于 2020-01-23 18:58:25
1.安装node、npm、cnpm apt install nodejs y apt install npm y node -v npm -v npm install cnpm -g --registry=HTTPS://registry.npm.taobao.org; cnpm -v 2.安装依赖 cd demo cnpm install 3.将路由模式改成history模式: vim src/router/index.js 4.打包 npm run build 5.配置Nginx #加入配置 server{ listen 80; server_name 49.234.49.146; location / { root /home/ubuntu/demo/dist; index index.html; } } 来源: https://www.cnblogs.com/xuepangzi/p/12230941.html

Debian系统更新apt源

天涯浪子 提交于 2020-01-23 02:00:09
docker search了一个tomcat的镜像,发现是Debian系统,里面啥啥命令都没有,使用的这个难受啊,于是,强迫症犯了,要安装相应软件,在容器里做实验用。 执行安装命令: apt-get install vim 报错: Reading package lists .. . Done Building dependency tree Reading state information .. . Done E: Unable to locate package vim 检查安装源文件: cat /etc/apt/sources.list 源文件内容如下: # deb http://snapshot.debian.org/archive/debian/20191224T000000Z stretch main deb http://deb.debian.org/debian stretch main # deb http://snapshot.debian.org/archive/debian-security/20191224T000000Z stretch/updates main deb http://security.debian.org/debian-security stretch/updates main # deb http://snapshot.debian

【Linux技术】ubuntu常用命令

自作多情 提交于 2020-01-22 07:26:47
查看软件xxx安装内容:dpkg -L xxx 查找软件库中的软件:apt-cache search 正则表达式 查找软件库中的软件:aptitude search 软件包 查找文件属于哪个包:dpkg -S filename 查找文件属于哪个包:apt-file search filename 查询软件xxx依赖哪些包:apt-cache depends xxx 查询软件xxx被哪些包依赖:apt-cache rdepends xxx 增加一个光盘源:sudo apt-cdrom add 系统升级:sudo apt-get update;sudo apt-get dist-upgrade 清除已删除包的残馀配置文件:dpkg -l |grep ^rc|awk ‘{print $2}’ |sudo xargs dpkg -P 编译时缺少h文件的自动处理:sudo auto-apt run ./configure 查看安装软件时下载包的临时存放目录:ls /var/cache/apt/archives 备份当前系统安装的所有包的列表:dpkg –get-selections | grep -v deinstall > ~/somefile 从备份的安装包的列表文件恢复所有包:dpkg –set-selections < ~/somefile;sudo dselect

APT (Annotation Processing Tool)

馋奶兔 提交于 2020-01-21 01:12:07
问题 I was trying to find simple example to understand the usage of apt command, but I couldn't find a helpful resource for this. I have referred this Getting Started with the Annotation Processing Tool but I do get a high level understanding. Moreover I want to write a code to test apt command. Can somebody post a simple example or better link to refer? 回答1: Here's an example of creating a Note annotation and associated processor: APT: Compile-Time Annotation Processing with Java Update. As of

supervisor服务

倾然丶 夕夏残阳落幕 提交于 2020-01-19 15:26:58
描述: 遇到各种各样的各种坑, 可以通过python2 的pip安装, 可以通过apt安装, 不支持python3; 如若用apt安装可能会自动启动并且加入开机自启(不保证成功),pip安装一定不会需要自己搞配置文件,开机自起等。 (我是很凌乱, 每次两种方式都搞,总要好久) 部署: 简书的这篇文章比较全: https://www.jianshu.com/p/3658c963d28b 但一定要坚持只用一种方式安装 无非 安装(推荐apt) ---(生成配置d的文件)--- 修改配置文件最后一行 --- 设置开机自起(service,systemd) 以及 设置supervisorctl 错误解决办法: A:Starting supervisor: Unlinking stale socket /var/run/supervisor.sock find / -name supervisor.sock unlink /***/supervisor.sock B:其他错误(依赖包版本问题??),不知道怎么解决的, 都卸载并删除相关文件?? 来源: https://www.cnblogs.com/daduryi/p/8540652.html

Ubuntu安装并使用emacs

时光怂恿深爱的人放手 提交于 2020-01-19 13:48:25
1、 sudo add-apt-repository ppa:kelleyk/emacs 2、 sudo apt update sudo apt install emacs26 3、安装完成,查看emasc版本 emacs --version GNU Emacs 26.2 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. 如果要删除, sudo apt remove --autoremove emacs26 emacs26-nox 开始使用! emacs -nw -Q 打开emacs C-h t 打开教程(同时按Ctrl+H,松开后按T),C-x k退出教程 C-v往后翻页,M-v往前翻页(Esc-v) C-x C-c 表示退出emacs会话 C-/ 表示撤销 四个方向键,C-n下一行,C-p上一行,C-f前进,C-b后退,M

Deep server from scratch

浪尽此生 提交于 2020-01-18 23:49:21
Deep server from scratch 1.install Ubuntu16.04 via flash 2.wired Network by Ruijie 3.install google 4.Sogou pinyin 5.Tsinghua mirrors 6.SSH server 7. Typora 8.sublime3 9.git 10.NVIDIA drive + cuda + cudnn (1)NVIDIA drive: https://www.cnblogs.com/pprp/p/9463974.html (2)cuda_8.0.61_375.26_linux.run (3)cudnn-9.0-linux-x64-v7.1.tgz 11.Pycharm 12: miniconda 1.install Ubuntu16.04 via flash https://www.cnblogs.com/pprp/p/9607245.html 2.wired Network by Ruijie https://www.cnblogs.com/nanzhao/p/9575226.html 3.install google https://blog.csdn.net/lxlong89940101/article/details/86287279 4.Sogou pinyin

Ubuntu 18.04上安装Git

◇◆丶佛笑我妖孽 提交于 2020-01-17 21:40:32
一、在Ubuntu 18.04上安装Git 1、通过运行以下命令确保您的系统和apt包列表完全更新 apt-get update -y apt-get upgrade -y 2、在Ubuntu 18.04上安装Git apt install git 3、可以使用以下命令来检查已安装的git版本 git --version 来源: CSDN 作者: 路过独木桥!! 链接: https://blog.csdn.net/wq892373445/article/details/104020995