下面是Puma的官方给出的数据,内存占用占据明显优势,而速度方面也是独占鳌头,所以Puma在部署中越来越流行了。
和unicorn一样,使用Puma之前先在Gemfile中添加:
之后添加配置文件config/puma.rb
关于所有的配置参数,可以在 https://github.com/puma/puma/blob/master/examples/config.rb 里面了解。
https://ruby-china.org/topics/10832
https://ruby-china.org/topics/15140
试试这个方法:typedef struct lista{
struct lista *next
int data
}list
void insert(list *h)
void del(list *h)
int main()
{
int flag
list *head=(list *)malloc(sizeof(list))
head->next=NULL
while(1)
{