Ubuntu

Set up Ubuntu Apache2 SSL using .pem and .key from Cloudflare

二次信任 提交于 2020-12-15 04:57:57
问题 I am using Cloudflare to set up a secure connection on Ubuntu 20 using Apache2. I used their Origin Server wizard to generate the following files: example.com.pem (Origin Certificate) example.com.key file (Private key) I gave them the extensions suggested by Cloudflare. I ran this: sudo a2enmod ssl sudo systemctl restart apache2 This is my setup: <VirtualHost *:443> .... SSLEngine on SSLCertificateFile /path/example.com.pem SSLCertificateKeyFile /path/example.com.key The non-secure site works

Set up Ubuntu Apache2 SSL using .pem and .key from Cloudflare

▼魔方 西西 提交于 2020-12-15 04:57:05
问题 I am using Cloudflare to set up a secure connection on Ubuntu 20 using Apache2. I used their Origin Server wizard to generate the following files: example.com.pem (Origin Certificate) example.com.key file (Private key) I gave them the extensions suggested by Cloudflare. I ran this: sudo a2enmod ssl sudo systemctl restart apache2 This is my setup: <VirtualHost *:443> .... SSLEngine on SSLCertificateFile /path/example.com.pem SSLCertificateKeyFile /path/example.com.key The non-secure site works

2018.4.10 Ubuntu cat命令解答、用法

旧街凉风 提交于 2020-12-15 04:39:18
###cat命令是linux下的一个文本输出命令,通常是用于观看某个文件的内容的; ####cat主要有三大功能: 1.一次显示整个文件。 $ cat filename 2.从键盘创建一个文件。 $ cat > filename 只能创建新文件,不能编辑已有文件. 3.将几个文件合并为一个文件。 $cat file1 file2 > file ####cat具体命令格式为 : cat [-AbeEnstTuv] [--help] [--version] fileName 说明:把档案串连接后传到基本输出(屏幕或加 > fileName 到另一个档案) 参数: -n 或 –number 由 1 开始对所有输出的行数编号 -b 或 –number-nonblank 和 -n 相似,只不过对于空白行不编号 -s 或 –squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行 -v 或 –show-nonprinting 范例: cat -n linuxfile1 > linuxfile2 把 linuxfile1 的档案内容加上行号后输入 linuxfile2 这个档案里 cat -b linuxfile1 linuxfile2 >> linuxfile3 把 linuxfile1 和 linuxfile2 的档案内容加上行号(空白行不加

The requested URL /wordpress/ was not found on this server

六月ゝ 毕业季﹏ 提交于 2020-12-15 04:36:06
问题 I am pretty new to wordpress i installed it on my system using this tutorial, everything worked and i got my wordpress working, i set up everything and shut down my system. when i restarted my system and visited http://localhost/wordpress/ i got this error Not Found The requested URL /wordpress/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80 After searching the internet for a while i have tried many fixes like going to: sudo nano /etc/apache2/apache2.conf and

Ubuntu14.04安装Chrome步骤

霸气de小男生 提交于 2020-12-12 21:24:34
一、添加PPA 从Google Linux Repository( http://www.google.com/linuxrepositories/ )下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - Key安装好后,在终端输入: sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' 二、更新 在终端输入: sudo apt-get update 三、安装 安装稳定版Chrome,在终端输入: sudo apt-get install google-chrome-stable 安装Beta版Chrome,在终端输入: sudo apt-get install google-chrome-beta 安装不稳定版Chrome,在终端输入: sudo apt-get install google-chrome-unstable 来源: oschina 链接: https://my.oschina.net/u

CentOS7环境下安装docker

混江龙づ霸主 提交于 2020-12-12 20:42:36
操作系统 : CentOS7.5.1804_x64 docker版本: docker-ce-18.06.3 准备环境 1、如之前安装过移除老旧版本 yum remove docker docker-client docker-client-latest docker-common docker- latest \ docker -latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine 2、使用阿里镜像库安装 # 安装必要的一些系统工具 yum install -y yum -utils device-mapper-persistent- data lvm2 # 添加软件源信息 yum -config-manager --add-repo http: // mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # 更新cache yum makecache fast 安装docker 1、安装 # 查看所有仓库中所有docker版本,并选择特定版本安装 yum list docker-ce --showduplicates | sort - r # 安装docker(这里选择 18.06 . 3 版本) yum

Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题

不羁岁月 提交于 2020-12-12 19:16:08
Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 参考文章: (1)Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 (2)https://www.cnblogs.com/wangyuehan/p/9807635.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4432649/blog/4794272

docker容器的学习笔记

拟墨画扇 提交于 2020-12-12 19:11:08
[TOC] Docker入门学习笔记(一) 什么是Docker? Docke的目标 Docker通常应用场景 Docker的基本组成 Docker基本操作 守护式容器 在容器中部署静态网站 1. 什么是Docker? 将应用程序自动部署到容器 2. Docke的目标 提供简单轻量的建模方式 职责的逻辑分离 快速高效的开发周期 鼓励面向服务的架构 3. Docker通常应用场景 使用Docker容器开发、测试、部署服务 创建隔离的运行环境 搭建多用户的平台即服务(PaaS)基础设施 提供软件即服务(SaaS)应用程序 高性能、超大规模的宿主机部署 4. Docker的基本组成 Docker Client 客户端 Docker Daemon 守护进程(c/s架构,守护进程是服务器,可以是本地,也可以是远程) Docker Image 镜像(一些只读层,root文件只有只读权限) Docker Container 容器(通过镜像启动,在只读层上增加一个可写层) Docker Registey 仓库(仓库存储镜像,公有和私有2种,公有的有Docker Hub,可以下载各种镜像) 补:Docker容器相关技术简介 Docker依赖的Linux内核特性 Namespaces命名空间 Control groups(cgroups)控制组 Namespaces命名空间(5种) PID

[Linux环境编程] 信号的基本概念与操作函数

落爺英雄遲暮 提交于 2020-12-12 10:32:44
[Linux环境编程] 信号的基本概念与操作函数 一、基本概念 1、中断的基本概念   中断是指在CPU正常运行期间,由于内外部事件或由程序预先安排的事件引起的CPU暂时停止正在运行的程序,转而为该内部或外部事件或预先安排的事件服务的程序中去,服务完毕后再返回去继续运行被暂时中断的程序。   而在Linux中通常分为外部中断(又叫硬件中断)和内部中断(又叫异常)。   硬中断:来自硬件设备的中断   软中断:来自其它程序的中断 2、信号的基本概念   信号是软件中断,提供了一种处理异步事件的方法,可以把他看作是进程与进程、内核与进程通信的一种方式。 3、信号 的分类   信号分为不可靠信号与可靠信号,编号由1~31、34~64(31、32空缺)。   在早期Unix版本中信号都是不可靠的,其编号在1~31之间,这些信号是建立在早期的信号机制上的,其信号可能会丢失。为了尽量避免这种情况,一个事件发生可能会产生多次信号。 不可靠信号不支持排除,在接收信号的时候可能会丢失,如果一个发给一个进程多次,它可能只接收到一次,其它的可能就丢失了。 早期版本的Linux中,进程在处理这种信号的时候,哪怕设置的信号处理函数,当信号处理函数执行完毕后,会再次恢复成默认的信号处理方式。   之后 经过信号机机制的更改,设计了34~64编号的可靠信号。 可靠信号相比不可靠信号而言,它支持排除,并且不会丢失

Android Monkey Runner Device Calls Hang but Work when Process Is Killed

走远了吗. 提交于 2020-12-12 10:25:14
问题 So for starters, I have a rather complex system that connects to a python web socket to fire off some various Android events. I was more or less given this system in working form on a Mac Mini. I have since ported it to Ubuntu 13.04 with some success. The problem I'm running into is with two python scripts I'm using to actually trigger these Android events. What I have are two .py files, run_wsh and performAction. Essentially run_wsh is connected to via a socket and told what events to fire.