{
id: 1,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import qs from 'qs'; | |
import store from '../store/index' | |
// axios 配置 | |
axios.defaults.timeout = 30000; | |
axios.defaults.baseURL = '/'; | |
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; | |
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'; //这是一个ajax请求 | |
// axios.defaults.headers['X-CSRF-TOKEN'] = $('meta[name="csrf-token"]').attr('content'); |
When setting these options consider the following:
- How long is your average request?
- What is the maximum number of simultaneous visitors the site(s) get?
- How much memory on average does each child process consume?
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log