鍍金池/ 問答/ Linux問答
久不遇 回答

唉。。。。還是自己不小心,服務(wù)器上面建了wwww目錄能同步上去就有鬼了。改成www就好了!

雅痞 回答

現(xiàn)在在分支prod上,想切換分支到dev上,如果沒有commit:

git stash
git checkout dev
git pop

如果commit了,去dev分支merge prod分支,然后回到prod分支回退版本

獨(dú)白 回答

檢查下字符串是否包含特定標(biāo)簽字段如<html>

拼未來 回答

找到了原因:
shutdown 可以選擇關(guān)閉某個方向或者同時關(guān)閉兩個方向,shutdown how = 0 or how = 1 or how = 2 (SHUT_RD or SHUT_WR or SHUT_RDWR),后兩者可以保證對等方接收到一個EOF字符(即發(fā)送了一個FIN段),而不管其他進(jìn)程是否已經(jīng)打開了這個套接字。而close不能保證,只有當(dāng)某個sockfd的引用計(jì)數(shù)為0,close 才會發(fā)送FIN段,否則只是將引用計(jì)數(shù)減1而已。也就是說只有當(dāng)所有進(jìn)程(可能fork多個子進(jìn)程都打開了這個套接字)都關(guān)閉了這個套接字,close 才會發(fā)送FIN 段。

因?yàn)槲业腸lient_data_socket是在父進(jìn)程產(chǎn)生的,子進(jìn)程關(guān)閉了并沒有發(fā)送FIN段,所以我需要用shutdown來發(fā)送FIN

心悲涼 回答

docker-compose stop
docker-compose build php-fpm

舊螢火 回答

可以折中一下:(ctrl + z)(掛起);然后找到pid,kill之

不支持https訪問。http可以訪問不代表https就一定可以。這個需要進(jìn)行一些配置的。

淚染裳 回答

這兩個docker search都能找到的,當(dāng)然前提是能連網(wǎng),
或者直接用瀏覽器訪問也行,象下面這樣。

https://index.docker.io/v1/search?q=rhel7.2&n=25:

{"num_pages":1,"num_results":12,"page_size":25,"page":1,"query":"rhel7.2","results":[{"name":"caiqian/rhel7.2beta-overlay","description":"RHEL7.2 Beta image for overlayfs testing","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"vtas/rhel7.2","description":"","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"mcalizo/rhel7.2systemd","description":"RHEL7.2 with Systemd","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"shrutikag/rhel7.2","description":"","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"adriaanbrae/rhel7.2","description":"","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"aramatra/rhel7.2","description":"","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"deepfenceio/rhel7.2","description":"","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"mmithaiw/rhel7.2-modified","description":"","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"jahndai/rhel7","description":"Clean image for FET user. By RHEL7.2","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"mbafna/rhel72-lvm2","description":"RHEL7.2 image with LVM2 ","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"vgs24/rhel72le","description":"Created a rhel7.2 le docker image","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"mkimranbasha/rhel72","description":"Docker file for RHEL7.2","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false}]}


https://index.docker.io/v1/search?q=centos7&n=25:


{"num_pages":217,"num_results":5407,"page_size":25,"page":1,"query":"centos7","results":[{"name":"openshift/base-centos7","description":"A Centos7 derived base image for Source-To-Image builders","star_count":22,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/jenkins-2-centos7","description":"A Centos7 based Jenkins v2.x image for use with OpenShift v3","star_count":12,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"ansible/centos7-ansible","description":"Ansible on Centos7","star_count":109,"is_trusted":true,"is_automated":true,"is_official":false},{"name":"openshift/mysql-55-centos7","description":"DEPRECATED: A Centos7 based MySQL v5.5 image for use with OpenShift v3","star_count":6,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/jenkins-1-centos7","description":"DEPRECATED: A Centos7 based Jenkins v1.x image for use with OpenShift v3","star_count":4,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/wildfly-101-centos7","description":"A Centos7 based WildFly v10.1 image for use with OpenShift v3","star_count":3,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/wildfly-100-centos7","description":"A Centos7 based WildFly v10.0 image for use with OpenShift v3","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/php-55-centos7","description":"DEPRECATED: A Centos7 based PHP v5.5 image for use with OpenShift v3","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/wildfly-81-centos7","description":"A Centos7 based WildFly v8.1 image for use with OpenShift v3","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/wildfly-90-centos7","description":"A Centos7 based WildFly v9.0 image for use with OpenShift v3","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/nodejs-010-centos7","description":"DEPRECATED: A Centos7 based NodeJS v0.10 image for use with OpenShift v3","star_count":4,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/mongodb-24-centos7","description":"DEPRECATED: A Centos7 based MongoDB v2.4 image for use with OpenShift v3","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/ruby-20-centos7","description":"DEPRECATED: A Centos7 based Ruby v2.0 image for use with OpenShift v3","star_count":3,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/postgresql-92-centos7","description":"DEPRECATED: A Centos7 based PostgreSQL v9.2 image for use with OpenShift v3","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/python-33-centos7","description":"DEPRECATED: A Centos7 based Python v3.3 image for use with OpenShift v3","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/perl-516-centos7","description":"DEPRECATED: A Centos7 based Perl v5.16 image for use with OpenShift v3","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"fortinj66/centos7-s2i-nodejs","description":"based off of ryanj/centos7-s2i-nodejs.  Biggest change is to allow a build script be be run","star_count":0,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/wildfly-110-centos7","description":"A Centos7 based WildFly v11.0 image for use with OpenShift v3","star_count":1,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/python-35-centos7","description":"Platform for building and running Python 3.5 applications\n","star_count":20,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/postgresql-96-centos7","description":"PostgreSQL is an advanced Object-Relational database management system\n","star_count":16,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/mysql-57-centos7","description":"MySQL 5.7 SQL database server\n","star_count":27,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/httpd-24-centos7","description":"Platform for running Apache httpd 2.4 or building httpd-based application\n","star_count":12,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"openshift/php-56-centos7","description":"DEPRECATED: A Centos7 based PHP v5.6 image for use with OpenShift v3","star_count":2,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/php-56-centos7","description":"Platform for building and running PHP 5.6 applications\n","star_count":12,"is_trusted":false,"is_automated":false,"is_official":false},{"name":"centos/php-70-centos7","description":"Platform for building and running PHP 7.0 applications\n","star_count":9,"is_trusted":false,"is_automated":false,"is_official":false}]}

從上面選你想要的 docker pull 下來, 用docker export 導(dǎo)出就可以到客啟那安裝了。

默念 回答

進(jìn)去阿里云的控制面板里面,配置安全組的入站規(guī)則。

我當(dāng)時就是用的是ECS學(xué)生機(jī),默認(rèn)沒有開啟,導(dǎo)致外網(wǎng)訪問不到。

雅痞 回答

top
是window的屬性
換句話說話 你別去用,因?yàn)槟阌貌涣??!?br>你換個 top1 就行了
圖片描述

焚音 回答

惡意訪問,洪水攻擊什么的沒法禁止
考慮記錄log,將惡意訪問的ip設(shè)定為禁止訪問,也可以考慮直接上傳到阿里云的后臺防火墻

萢萢糖 回答

composer global require laravel/installer

laravel new projectname

或者 直接

composer create-project laravel/laravel projectname

傻叼 回答

在C++里使用C庫的函數(shù)時,你加了 extern "C" { } 嗎? 否則就會鏈接找不到。

不討喜 回答

4412開發(fā)板與4418開發(fā)板的區(qū)別對比,兩款開發(fā)板可廣泛適用于工控、智能家居、醫(yī)療、多媒體、安防、車載、金融、消費(fèi)電子、手持設(shè)備、顯示控制、教學(xué)、電力、通訊等領(lǐng)域。

針對你自己的需求呢

萌吟 回答

touch a.txt 很麻煩么??

替身 回答

1.onload 就是圖片加載完成之后,要做的操作。
2.瀏覽器不需要知道圖片有沒有加載完,需要用到圖片的時候,自然會去加載。至于是從緩存中加載,還是從遠(yuǎn)端下載,這是瀏覽器要做的事情。而圖片預(yù)加載就是在圖片用到之前,先讓瀏覽器下載到緩存中,這樣用到的時候就不需要下載了。
3.通過js代碼,肯定是不知道圖片緩存在哪里的,因?yàn)檫@個是瀏覽器內(nèi)部做的事情。一般來說瀏覽器會做非常非常多的事情,包括渲染、下載、緩存等等。js代碼所做的事情是在瀏覽器已經(jīng)實(shí)現(xiàn)的功能基礎(chǔ)上,再做一點(diǎn)網(wǎng)站功能業(yè)務(wù)上的事情。至于這個功能業(yè)務(wù)用什么語言實(shí)現(xiàn)?其實(shí)瀏覽器并不在乎,flash、js甚至是其他什么script都行,對瀏覽器來說,不過是加一個執(zhí)行環(huán)境而已。

紓惘 回答

它在以它的方式等著歡迎你
MongoDB Wire Protocol over TCP/IP,不是 HTTP 協(xié)議哦
http - How does the protocol "mongodb" work? - Super User