V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  s609926202  ›  全部回复第 87 页 / 共 87 页
回复总数  1734
1 ... 78  79  80  81  82  83  84  85  86  87  
2017-05-08 10:03:42 +08:00
回复了 s609926202 创建的主题 问与答 继续求问关于 vagrant 网站访问速度。。
@mritd 额,我这是跟风状态,有人说线下开发用 vagrant 部署;线上用 dicker 部署。所以这会我就捣鼓 vagrant 了。
2017-05-07 23:28:40 +08:00
回复了 s609926202 创建的主题 问与答 继续求问关于 vagrant 网站访问速度。。
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "centos6.7"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080

# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y apache2
# SHELL
end
@xlcoder166 兄弟能把你的配置表发我一份吗,我按照你的配置共享文件夹直接就失效了,,
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "centos7.2"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080

# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y apache2
# SHELL
end


这是我的配置
@xlcoder166
2017-04-30 14:03:27 +08:00
回复了 s609926202 创建的主题 问与答 请教一些关于运维的事儿,烦请各位一观!
@marlboros 还有一点,我通过内网 ip 连接第一台安装了数据库的服务器上的数据库时,无法连接,请问一般情况下怎么连接呢?
2017-04-30 13:41:11 +08:00
回复了 s609926202 创建的主题 问与答 请教一些关于运维的事儿,烦请各位一观!
@marlboros 关于几核几 G 这个配置,我司运维部门说后期可以扩展的
2017-04-30 02:31:04 +08:00
回复了 s609926202 创建的主题 问与答 请教一些关于运维的事儿,烦请各位一观!
@lovejoy 额,,我们主要面向用户是国外,所 AWS,,我对智能路由不懂,,那天应该是我听错了,,汗。。
2017-04-29 22:02:39 +08:00
回复了 s609926202 创建的主题 问与答 请教一些关于运维的事儿,烦请各位一观!
@Showfom 呃,,我们公司有运维部门的,只是我找他们之前我想先了解一下这些知识,免得到时候被笑话(智能路由器都不懂,你个渣渣(指我)),抱歉了,没法向 BOSS 推荐你们了,,我在 google 上一搜智能路由器都是一些家用路由器之类的,尴尬,请问能提供一两个讲智能路由器的网站吗?先谢过。
2017-04-27 13:40:51 +08:00
回复了 s609926202 创建的主题 问与答 我想做一个多站点统一管理的后台,如何实现?
@changwei phpcms 的多站点我不是很赞成,不好用,我才刚开始做。。。
2017-04-26 11:01:36 +08:00
回复了 s609926202 创建的主题 问与答 请问如何统计网站全球节点的访问速度?
@bozong 他们有提供接口吗?
2017-04-26 10:22:25 +08:00
回复了 s609926202 创建的主题 问与答 请问如何统计网站全球节点的访问速度?
@sunkuku 这个貌似只能在他们的官网查?我是想把这个功能放到我自己的后台作为一个扩展功能,,有什么办法,?比如有一个接口,我请求这个接口,然后传递需要检测的 url ,之后接口返回给我各个信息。。
是端口的问题吗?
怎么解决的?
2017-01-28 23:48:43 +08:00
回复了 jellybool 创建的主题 PHP 大年初一立个贴: 7 月份我要去纽约参加 laravel 大会了
赞,我这个英语渣渣这辈子没机会了~
1 ... 78  79  80  81  82  83  84  85  86  87  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5535 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 06:51 · PVG 14:51 · LAX 22:51 · JFK 01:51
Developed with CodeLauncher
♥ Do have faith in what you're doing.