V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  s609926202  ›  全部回复第 84 页 / 共 85 页
回复总数  1688
1 ... 76  77  78  79  80  81  82  83  84  85  
2017-06-16 15:45:31 +08:00
回复了 s609926202 创建的主题 问与答 被 nginx 伪静态搞疯了,,
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /
#mobile start
#mobile end
RewriteRule ^(uploads/.*?_\d+x\d+\.(jpg|gif|png|jpeg))$ /image/index.php?$1 [L]

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>


# Protect application and system files from being viewed
RewriteRule ^(?:v5|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/(uploads|public|newtravel|phone|payment)(/)?
#RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
@lidongyx 给个大致方法?谢谢
2017-05-23 12:04:44 +08:00
回复了 s609926202 创建的主题 问与答 请教一个关于 amazon 云存储的问题?
@hezhile AWS 的 CDN 是收费的,如果我使用免费的 cloudflare+AWS 的 s3 的效果和 s3+aws 的 cloudflare 对比,效果会差多少?尴尬的是我没做过测试。
2017-05-16 01:02:59 +08:00
回复了 jellybool 创建的主题 PHP Laravist 全部视频都可以免费观看啦!
我的账号:609926202
2017-05-13 13:47:34 +08:00
回复了 qq292382270 创建的主题 服务器 看, 我的服务器中了目前市面上最火的病毒哈哈...
其实我想问如果是 linux 系统的服务器会有什么提示?
2017-05-12 08:28:44 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
@Jakesoft 呃,可是我看了 php 错误日志其中并没有任何信息啊。。
2017-05-12 00:59:12 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
解决了,,是 a 服务器上没有安装 phpredis 扩展,,,我这个逗。
2017-05-11 23:41:21 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
@Lax b 服务器上是没有问题的,可以正常写入 key-value 对,而且 b 上的 php.ini 设置的 session_path 和 a 的一样,都是 10.12.222.134:6379。
那我目前猜测应该是 a 上的网站无法向 b 上的 redis 服务写 key-value 对。但是不知道从何下手,好像并没有不能写入这一问题啊,。
2017-05-11 23:01:02 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
@jarlyyn 我感觉是 b 上登录时无法向 a 服务中的 redis 服务写入 session 信息导致的,这个大家知道如何判断吗?或者有什么解决方法。
2017-05-11 22:26:27 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
@jarlyyn 通的。
2017-05-11 21:22:51 +08:00
回复了 s609926202 创建的主题 问与答 ELB, Redis 实现 session 共享,遇到些问题。。
@jarlyyn 我同时绑定了安装了 redis 服务的服务器的内网 ip,然后另外一台通过这个 ip 进行连接 redis 服务。
@undeflife 首先你得翻墙。。
@QQ2171775959 共勉,哈哈
@ETiV 能提供一下这个 repo 吗。。。
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 这个配置,我司运维部门说后期可以扩展的
1 ... 76  77  78  79  80  81  82  83  84  85  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4958 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms · UTC 07:42 · PVG 15:42 · LAX 00:42 · JFK 03:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.