vagrant

Percona-Tookit工具包之pt-sift

风格不统一 提交于 2021-01-03 23:44:49
Preface We've got a lot of files related with system performance which generated by pt-stalk in directory "/var/lib/pt-stalk" in my last blog.We can use "cat","more","less" to print the contents of them but it is really not convenient to do so. Introduce pt-sift is the right tool helping us to retrieve diagnostic data easily.There're poor options of the tool to learn.Therefor,it's easy enough to sift the contents we need with no time. Procedure Usage 1 pt-sift FILE|PREFIX|DIRECTORY Examples Print the output of the files generated by pt-stalk. 1 [root@zlm2 09 : 50 : 42 /var/lib/pt- stalk] 2 #pt

rpm软件包以及rmp命令

强颜欢笑 提交于 2021-01-02 16:38:44
Linux下的软件包分为源码包和二进制包 源码包就是一大堆源代码程序,是由程序员按照特定的格式和语法编写出来的。安装时会进行编译,比较耗时,容易出错。 二进制包,也就是源码包经过成功编译之后产生的包。由于二进制包在发布之前就已经完成了编译的工作,因此用户安装软件的速度较快(同 Windows下安装软件速度相当),且安装过程报错几率大大减小。 二进制包是 Linux 下默认的软件安装包,因此二进制包又被称为默认安装软件包。目前主要有以下 2 大主流的二进制包管理系统: RPM 包管理系统 :功能强大,安装、升级、査询和卸载非常简单方便,因此很多 Linux 发行版都默认使用此机制作为软件安装的管理方式,例如 Fedora、CentOS、SuSE 等。 DPKG 包管理系统 :由 Debian Linux 所开发的包管理机制,通过 DPKG 包,Debian Linux 就可以进行软件包管理,主要应用在 Debian 和 Ubuntu 中。 以下是使用rpm命令管理apm二进制软件包的说明。 RPM包默认安装路径 通常情况下,RPM 包采用系统默认的安装路径,所有安装文件会按照类别分散安装到表 1 所示的目录中。 表 1 RPM 包默认安装路径 安装路径 含 义 /etc/ 配置文件安装目录 /usr/bin/ 可执行的命令安装目录 /usr/lib/ 程序所使用的函数库保存位置

vagrant up报错 Warning: Authentication failure. Retrying...解决方案

懵懂的女人 提交于 2021-01-02 04:10:11
vagrant up报错 Warning: Authentication failure. Retrying...解决方案 参考文章: (1)vagrant up报错 Warning: Authentication failure. Retrying...解决方案 (2)https://www.cnblogs.com/zqifa/p/vagrant-1.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4437974/blog/4873358

Vagrant挂载目录失败mount: unknown filesystem type ‘vboxsf’

不想你离开。 提交于 2020-12-31 06:28:13
一、背景 ​  最近在玩Mac OS下的虚拟机,然后有朋友推荐了我Vagrant,但是在设置完跟宿主机共享目录然后启动虚拟机的时候,出现了 vagrant mount: unknown filesystem type 'vboxsf' 问题,而且网上的解决访问在我的电脑上不适用,折腾了很久才解决,所以记录一下,以便能帮到遇到同样问题的小伙伴。 错误如下:    二、解决思路及步骤 ​  遇见这个,感觉瞬间懵逼。不过好在理智控制住了我,我就去网上查呀查,知道了原因是 要先安装virtualbox guest addtions才能开启目录共享 。很无奈的是都没能解决,下面给出网上的解决方式: 虚拟机启动之后,点击虚拟机上边的菜单 Device > Insert Guest Addtions CD image… ,默认情况下,会在虚拟机centos中添加一个磁盘。可是到我这里,我点击以后弹出如下错误:    别的解决方式和思路差不多,很明显我这里没办法通过这种方式解决。 然后我就打开虚拟机设置自己摸索,但我知道目的是在虚拟机中安装GuestAdditions,终于在摸索了好久以后我发现了其中的奥秘,解决办法如下: 首先把 /Applications/VirtualBox.app/Contents/MacOS 路径下的 VBoxGuestAdditions.iso 文件复制到桌面

CORS issue with Django and React hosted on same server

为君一笑 提交于 2020-12-31 05:28:17
问题 I am having a CORS issue with my Django Rest Framework and React app on the same server. I am running Vagrant with an Ubuntu 18 box and NGINX installed (I am assuming this issue will translate to DigitalOcean) I apologize ahead of time if I am providing too much information. DRF is using Supervisor and Gunicorn is on port 8000. I created my React app using create-react-app. I then used npm run build to create the static files. NGINX Setup: React Conf server { listen 8080; server_name sandbox

CORS issue with Django and React hosted on same server

倖福魔咒の 提交于 2020-12-31 05:27:45
问题 I am having a CORS issue with my Django Rest Framework and React app on the same server. I am running Vagrant with an Ubuntu 18 box and NGINX installed (I am assuming this issue will translate to DigitalOcean) I apologize ahead of time if I am providing too much information. DRF is using Supervisor and Gunicorn is on port 8000. I created my React app using create-react-app. I then used npm run build to create the static files. NGINX Setup: React Conf server { listen 8080; server_name sandbox

CORS issue with Django and React hosted on same server

倖福魔咒の 提交于 2020-12-31 05:27:05
问题 I am having a CORS issue with my Django Rest Framework and React app on the same server. I am running Vagrant with an Ubuntu 18 box and NGINX installed (I am assuming this issue will translate to DigitalOcean) I apologize ahead of time if I am providing too much information. DRF is using Supervisor and Gunicorn is on port 8000. I created my React app using create-react-app. I then used npm run build to create the static files. NGINX Setup: React Conf server { listen 8080; server_name sandbox

golang开发:(一)开发环境搭建vagrant+VirtualBox

我怕爱的太早我们不能终老 提交于 2020-12-24 08:03:06
开发环境介绍 不管何种开发语言,目前用的比较多的开发环境基本就是Vagrant+VirtualBox搭建的虚拟开发环境,这种开发环境的好处就是一次搭建处处可用,各个平台和系统都可以使用。开发团队中,可以自己制作一个box,让团队的成员方便安装,保证每个人的开发环境都是一致的。 Vagrant可以创建一些共享目录,让物理机和虚拟机使用共享的目录,虚拟机只提供开发环境。这样的话,开发环境随处可用。代码目录只要在物理机上共享就可以使用这套开发环境。 Vagrant 安装 官网下载合适的安装包傻瓜式安装。官网下载地址: http://www.vagrantup.com/downloads.html 安装完成后试下 命令 vagrant -h Usage: vagrant [options] <command> [<args>] -v, --version Print the version and exit. -h, --help Print this help. Common commands: box manages boxes: installation, removal, etc. cloud manages everything related to Vagrant Cloud destroy stops and deletes all traces of the vagrant

Win7 下 实例 Vagrant + VirtualBox

∥☆過路亽.° 提交于 2020-12-19 04:10:49
Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : app_servers = { :web1 => '192.168.1.101', :web2 => '192.168.1.102' } Vagrant.configure("2") do |config| config.vm.box = "centos6.5" config.vm.define :static do |static_config| static_config.vm.network :private_network, ip: "192.168.1.100" static_config.vm.network :forwarded_port, guest: 80, host: 8080 config.vm.provider :virtualbox do |vb| vb.name = "static_web" vb.customize ["modifyvm", :id, "--memory", "256"] end end app_servers.each do |app_server_name, app_server_ip| config.vm.define app_server_name do |app_config| app_config.vm

Minimal Vagrant script to generate fully usable Debian VMs for personal computing

假装没事ソ 提交于 2020-12-15 06:52:50
问题 During the past years, I configured several Debian VMs for personal usage, using either VirtualBox or Vmware. However, I am not a sysadmin, nor do I operate any servers. Instead, my main usage of VMs is to install "throwaway programs" or "untrusted programs" that I do not want to pollute my host system, and I definitely need a full graphical environment within these VMs. Unfortunately, this setup has always been a painful manual process, and I always have to lookup several sites to find out