apt

如何搭建Kubernetes

匿名 (未验证) 提交于 2019-12-02 23:42:01
集群方案: 发行版:ubuntu16.04 内核:4.4.0-62-generic・ 版本:Kubernetes: 1.14.0・ 网络方案:flannel network 1.禁用交换内存 通常我们安装的系统默认都是启用交换内存的,但是kubelet(1.8版本开始)是不支持交换内存。 swapoff -a 2.修改主机名和hosts文件 编辑/etc/hostname并添加: kube-master 将以下行添加到/etc/hosts: 192.168.0.2 kube-master 192.168.0.3 kube-worker-1 192.168.0.4 kube-worker-2 完成以上系统环境配置后,建议重启一下服务器 3.安装Docker和Kubernetes Docker安装有很多,以下是其中一种: 1.删除系统上可能存在的旧版Docker: sudo apt remove docker docker-engine docker.io 2.确保您拥必要的软件包以允许使用Docker的存储库: sudo apt install apt-transport-https ca-certificates curl software-properties-common 3.添加Docker的GPG密钥: curl -fsSL https://download.docker

在阿里云ECS上安装Docker、Tomcat并部署官网(无后端交互)

匿名 (未验证) 提交于 2019-12-02 23:41:02
配置: ECS 1核1G,1M带宽 Ubantu 16 Docker Tomcat Docker的APT仓库包含1.7.1以及更高的版本。通过设置APT使用来自docker仓库的包。    1)登陆机器,用户必须使用sudo或者root权限。    2)打开终端    3)更新包信息,确保APT能使用https方式工作,并且CA证书已安装了     sudo apt-get update     sudo apt-get install apt-transport-https ca-certificates 4)添加一个新的GPG密钥     sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 转载请标明出处: 在阿里云ECS上安装Docker、Tomcat并部署官网(无后端交互) 文章来源: https://blog.csdn.net/weixin_37896608/article/details/91514150

Ubuntu18.04下安装Sublime Text3!

匿名 (未验证) 提交于 2019-12-02 23:05:13
这几天安装了Ubuntu18.04,然后在里面安装Sublime Text3,结果各种问题!各种BUG!试了网上各种办法!尼玛!都是坑爹的啊! 最后还是楼主自己解决了…… 废话不多说,直接按顺序执行下面命令开始安装! wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 1 sudo apt-get install apt-transport-https 1 echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 1 sudo apt-get update 1 sudo apt-get install sublime-text 1 废话也不多说,按顺序执行以下命令! git clone https://github.com/lyfeyaj/sublime-text-imfix.git 1 cd sublime-text-imfix && ./sublime-imfix 1 更 ubuntu14.04: 安装Sublime text3: sudo add-apt-repository ppa

APT攻击基础科普

匿名 (未验证) 提交于 2019-12-02 23:03:14
0x00 APT的历史起源背景 APT通常是指一个组织,甚至可能一个政府支持下的组织,因为APT团体是一个既有能力也有意向持续而有效地进行攻击的实体。所以APT通常用来指网络威胁,特别是使用互联网进行间谍活动,利用各种情报搜集技术来获取敏感信息,但同样适用于诸如传统间谍活动或攻击等其他威胁。其他公认的攻击媒介包括受感染的媒体,供应链和社会工程。这些攻击的目的是将自定义的恶意代码放在一台或多台计算机上执行特定的任务,并在最长的时间内不被发现。了解攻击者文件(如文件名称)可帮助专业人员进行全网搜索,以收集所有受影响的系统。个人,如个人黑客,通常不被称为APT,因为即使他们意图获得或攻击特定目标,他们也很少拥有先进和持久的资源。 0x01 APT攻击定义 APT攻击(Advanced Persistent Threat,高级持续性威胁)是指组织(特别是政府)或者小团体利用当下先进的攻击手法对特定目标进行长期持续性的网络攻击。APT攻击的高级体现在于精确的信息收集、高度的隐蔽性、以及使用各种复杂的网络基础设施、应用程序漏洞对对目标进行的精准打击。攻击人员的攻击形式更为高级和先进,称为网络空间领域最高级别的安全对抗。APT是黑客以窃取核心资料为目的,针对客户所发动的网络攻击和侵袭行为。 APT(高级长期威胁)包含三个要素:高级、长期、威胁

UNetbootin U盘安装ubuntu

匿名 (未验证) 提交于 2019-12-02 22:56:40
UNetbootin 启动U盘制作软件 https://unetbootin.github.io/ 系统ISO 下载 https://www.ubuntu.com/download/alternative-downloads desktop: 是livecd+图形安装cd(可以直接从光盘读取进入系统然后在图形界面下安装) server : 是服务器版(只装用命令行模式,没有图形部分,一般用户估计没怎么人用) alternate:是文本安装模式(安装过程用点中只能键盘操作,安装界面和windows前半段的类似) LTS支持:长期服务、质量保证、本地化、认证。 安装过程:下载 UNetbootin ,把IOS写入U盘,直接用U盘启动系统,安装。 替换为清华的源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ sudo cp /etc/apt/sources .list /etc/apt/sources .list .back sudo vi /etc/apt/sources .list 更换zsh https://blog.csdn.net/luo617/article/details/81361353 文章来源: UNetbootin U盘安装ubuntu

Could not select 'OK' in mysql-apt-config [Ubuntu 14.04]

 ̄綄美尐妖づ 提交于 2019-12-02 22:40:10
I am using Ubuntu 14.04. sudo apt-get update always give me this option to configure mysql-apt-config. I am have tried to select the version, press 'tab' -> key highlighted on 'OK', press 'Enter' but nothing happens. It goes back again highlighting the version number. Software Updater also crashes at mysql-apt-config. Any idea on what is causing this problem and how to get rid of it? Thx. When you can't do apt-get purge mysql-apt-config because you're trapped: It won't execute because dpkg is interrupted, and "sudo dpkg --configure -a" backs you to the broken "configuring mysql-apt-config"

Requirements file for apt-get, similar to pip

心不动则不痛 提交于 2019-12-02 22:15:01
I like how you can manage dependencies with pip requirements. Is there something similar in case of apt-get? http://www.pip-installer.org/en/latest/requirements.html#requirements-file-format Your question is that you want to have a list of system dependences in one file, for being able to install it with one command. I don't recomend you to include the version of a package in the system dependencies. In the soft system dependences like " build-essential " or " uuid-dev " you normally want the latest version of the package. In the "hard dependeces" like python, postgres or whatever, normally

ubuntu 安装PHP

匿名 (未验证) 提交于 2019-12-02 22:11:45
安装PHP步骤 1、安装软件源拓展工具: apt -y install software-properties-common apt-transport-https lsb-release ca-certificates add-apt-repository ppa:ondrej/php 3、更新软件源缓存: apt update 4、安装 PHP7.2: apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache -y 4、安装 PHP7.2: sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php/7.2/fpm/php.ini 5、管理PHP:   安装好了先重启一下! systemctl restart php7.2-fpm  更多操作: ystemctl restart php7.2-fpm #重启 systemctl start php7.2-fpm #启动 systemctl stop php7.2-fpm #关闭 systemctl status php7.2-fpm #检查状态

Ubuntu18.04 安装mysql8.0.11

匿名 (未验证) 提交于 2019-12-02 22:06:11
1. 下载deb包 2.运行命令 sudo dpkg - i mysql - apt - config_0 . 8.10 - 1 _all . deb sudo apt update 3.安装mysql8 sudo apt install mysql - server 4.输入root密码 5.密码加密方式选择5.x 6.查看mysql是否安装成功 mysql - u root - p 7.查看mysql字符集,mysql8字符集默认为utf-8。 show variables like '%char%' ; 来源:51CTO 作者: 像风一样爱自由 链接:https://blog.csdn.net/sinat_41292836/article/details/100732562