Centos7中怎么卸载supervisor 5C

在Centos7系统中怎么卸载supervisor呢??????????????????????

2个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何正确配置docker中的supervisor

<div class="post-text" itemprop="text"> <p>I have a working laravel environment using docker. my projects has multiple services in different container such as redis, mongodb, mysqldb and nodejs. I want to use supervisor on my project to interact with redis for the queues and php to run the job. I have done some testing and research but I really can't make it work. </p> <p>so here is my DockerFile:</p> <pre><code>FROM php:7.3-fpm # Copy composer.lock and composer.json COPY composer.lock composer.json /var/www/ # Set working directory WORKDIR /var/www # Install dependencies RUN apt-get update &amp;&amp; apt-get install -y \ build-essential \ mariadb-client \ libpng-dev \ libzip-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ locales \ zip \ jpegoptim optipng pngquant gifsicle \ vim \ unzip \ git \ curl \ cron \ supervisor # Clear cache RUN apt-get clean &amp;&amp; rm -rf /var/lib/apt/lists/* # Install extensions RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ RUN docker-php-ext-install gd RUN docker-php-ext-configure bcmath --enable-bcmath RUN docker-php-ext-install bcmath # install mongodb ext RUN pecl install mongodb \ &amp;&amp; docker-php-ext-enable mongodb # Install composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Add user for laravel application RUN groupadd -g 1000 www RUN useradd -u 1000 -ms /bin/bash -g www www # Copy supervisor configs COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Copy existing application directory contents COPY . /var/www # Copy existing application directory permissions COPY --chown=www:www . /var/www COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf CMD ["/usr/bin/supervisord"] # Change current user to www USER www # Expose port 9000 and start php-fpm server EXPOSE 9000 CMD ["php-fpm"] </code></pre> <p>and my docker-compose.yml file</p> <pre><code>version: '3' services: #PHP Service php: build: context: . dockerfile: Dockerfile image: digitalocean.com/php container_name: php restart: unless-stopped tty: true environment: SERVICE_NAME: php SERVICE_TAGS: dev working_dir: /var/www volumes: - ./:/var/www - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini - ./supervisord.conf:/etc/supervisor/conf.d/supervisord.conf networks: - app-network #NODEJS Service nodejs: image: node:10 container_name: nodejs restart: unless-stopped working_dir: /var/www volumes: - ./:/var/www tty: true networks: - app-network #Nginx Service nginx: image: nginx:alpine container_name: nginx restart: unless-stopped tty: true ports: - "80:80" - "443:443" volumes: - ./:/var/www - ./nginx/conf.d/:/etc/nginx/conf.d/ networks: - app-network #MySQL Service mysqldb: image: mysql:5.7.22 container_name: mysqldb restart: unless-stopped tty: true ports: - "3306:3306" environment: MYSQL_DATABASE: ${DB_DATABASE} MYSQL_USER: ${DB_USERNAME} MYSQL_PASSWORD: ${DB_PASSWORD} MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} SERVICE_TAGS: dev SERVICE_NAME: mysql volumes: - dbdata:/var/lib/mysql - ./mysql/my.cnf:/etc/mysql/my.cnf networks: - app-network #MongoDB Service mongodb: image: mongo:3 container_name: mongodb restart: unless-stopped tty: true ports: - "27017:27017" networks: - app-network #Redis Service redis: image: redis container_name: redis restart: unless-stopped tty: true ports: - "${REDIS_PORT}:6379" networks: - app-network #Docker Networks networks: app-network: driver: bridge #Volumes volumes: dbdata: driver: local </code></pre> <p>you might also want to see my supervisord.conf</p> <pre><code>[supervisord] user=www nodaemon=true logfile=/dev/null logfile_maxbytes=0 pidfile=/var/run/supervisord.pid loglevel = INFO [unix_http_server] file=/var/run/supervisor.sock chmod=0700 username=www password=www [supervisorctl] serverurl=unix:///var/run/supervisord.sock username=www password=www [rpcinterface:supervisor] supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface [program:php-fpm] command = /usr/local/sbin/php-fpm autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:ohwo-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/artisan horizon autostart=false autorestart=true user=www numprocs=1 redirect_stderr=true stdout_logfile=/var/www/laravel-worker.log </code></pre> <p>so from that setup. when the containers is UP it seems that supervisord is not working because if I run <code>php artisan horizon</code> manually on my php container the queuing works perfectly. btw horizon is the tool i use for queuing. </p> <p>and then I also try to run <code>supervisorctl</code> on my php container and I got this error <code>unix:///var/run/supervisord.sock no such file</code></p> <p>so I'm just pretty new to docker just started few months ago. I do know how to configure supervisord on linux but i can't make it work on docker. </p> <p>so please pardon my stupidity :) </p> </div>

centos7虚拟机使用yum命令安装显示没有可用的软件包,要怎么解决??

![图片说明](https://img-ask.csdn.net/upload/202003/27/1585323207_958538.png) 使用VMware 安装完虚拟机centos7后,想使用yum安装Nginx,提示是没有可用的软件包,查下百度说使用这个命令拓展资源包,但是这个命令也是显示没有可用的软件包

虚拟机版本CentOS Linux release 7.6.1810 (Core)下离线安装keepalived+nginx+supervisor

如题, 求大神帮忙整理:在一台纯净的linux虚拟机centos7.6.1810版本下 离线安装keepalived+nginx的rpm包整理(不能使用任何在线安装的方式 rpm yum)整理好之后可以私我发我整理好之后的包,也可以直接回答, 我确认可以安装后确认采纳,分不多,希望有大神帮个忙。 另外对版本的要求是希望版本号越高越好,keepalived2.0以上,nginx也尽 可能新一些,据我所述目前keepalived最新版是2.0.18,nginx最新版是1.17.3 supervisor是4.0.4, 不要求都是最新版,尽可能版本号高一点。可以把keepalived+nginx 和supervisor的rpm依赖包分开。

请问下windows有没有类似supervisor的软件

想把python文件一直运行在后台,曾经做过centos用supervisor把python一直运行在后台,但是windows没有这个软件,所以问问大大们,windows有类似的软件么

Linux(CentOS 6) 下配置Mono和Jexus 部署ASP.NET MVC5 出现问题。

Linux(CentOS 6) 下配置Mono和Jexus 部署ASP.NET MVC5 System.IO.FileNotFoundException Could not find file "/var/www/mms/bin\roslyn\csc.exe". Description: HTTP 500.Error processing request. Details: Non-web exception. Exception origin (name of application or object): mscorlib. Exception stack trace: ![图片说明](https://img-ask.csdn.net/upload/201606/14/1465865548_35791.png)

在创建dockerFile文件中出现/bin/sh: rm: command not found

* 通过学习dockerfile命令试着自己做一下练习,在联系过程中出现 `/bin/sh: rm: command not found` * 代码 ```` FROM centos:latest MAINTAINER my<my@163.com> ENV PATH /tmp WORKDIR $PATH RUN rm -rf /tmp CMD /bin/bash ```` * Build过程 ``` Sending build context to Docker daemon 2.048 kB Step 1/6 : FROM centos:latest ---> 1e1148e4cc2c Step 2/6 : MAINTAINER my<my@163.com> ---> Running in dc6073af05a2 ---> b6f7e3b7bca8 Removing intermediate container dc6073af05a2 Step 3/6 : ENV PATH /tmp ---> Running in 7d000413c304 ---> f643d6b20259 Removing intermediate container 7d000413c304 Step 4/6 : WORKDIR $PATH ---> 340ef4b29f1c Removing intermediate container 658c7d7a96b9 Step 5/6 : RUN rm -rf /tmp ---> Running in 3aad9ab202d1 /bin/sh: rm: command not found The command '/bin/sh -c rm -rf /tmp' returned a non-zero code: 127 ``` 以上请大神指点迷津

reboot后,Docker容器可以自启动,但是容器内的服务如何自启动?

sudo docker restart [容器ID] 容器重启后,容器内服务没法自启动(Dockerfile里是配置了服务自启动的,启动镜像的时候容器内服务是可以自启动的,但是容器重启后服务没法起来) 尝试写服务启动脚本,然后在rc.local里配置,服务还是启动不了

主管在后台运行,但工作立即失败

<div class="post-text" itemprop="text"> <p>I've setup a <a href="http://supervisord.org/" rel="nofollow">supervisor</a> successfully (<code>CentOS release 6.6</code>) for <a href="http://kr.github.io/beanstalkd/" rel="nofollow">beanstalk</a> queue and it was working before but suddenly after changing the password, it's not working anymore. I did it (setup) as <code>root</code> user but now whenever I add a job in the <code>queue</code> it fails and following trace is available in the log file:</p> <pre><code>2014-12-03 00:45:36,017 INFO RPC interface 'supervisor' initialized 2014-12-03 00:45:36,017 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2014-12-03 00:45:36,017 INFO daemonizing the supervisord process 2014-12-03 00:45:36,017 INFO supervisord started with pid 31309 2014-12-03 00:45:37,022 INFO spawned: 'queue' with pid 31317 2014-12-03 00:45:38,023 INFO success: queue entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs) </code></pre> <p>Right now the <code>supervisord.conf</code> contains following configuration:</p> <pre><code>[unix_http_server] file=/tmp/supervisor.sock ; (the path to the socket file) [supervisord] logfile=/tmp/supervisord.log logfile_maxbytes=50MB logfile_backups=10 loglevel=info pidfile=/tmp/supervisord.pid nodaemon=false minfds=1024 minprocs=200 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///tmp/supervisor.sock [program:queue] command=/usr/local/bin/php artisan queue:listen --tries=3 --timeout=86400 --sleep=60 directory=/home/***/www/*** // Real path removed for this question autostart=true autorestart=true redirect_stderr=true </code></pre> <p>I've tried everything as I could, restarted the <code>program</code> and reloaded the <code>supervisor</code> several times but no luck. What can I do now to make it working again?</p> <p><strong>Update:</strong> If I run the <code>php artisan queue:work</code> from terminal manually then it works on foreground.</p> </div>

RabbitMQ TLS tls_connection:format_status / 2崩溃

<div class="post-text" itemprop="text"> <p>I'm trying to make a simple TLS connection using Go, and RabbitMQ reports this issue upon attempting to create a connection with TLS enabled (Go client):</p> <pre><code>rabbitmq_1 | 2018-04-16 13:37:54.146 [error] &lt;0.537.0&gt; ** State machine &lt;0.537.0&gt; terminating rabbitmq_1 | ** Last event = {{call,{&lt;0.362.0&gt;,#Ref&lt;0.2669730211.1202454530.228189&gt;}},{new_user,&lt;0.359.0&gt;}} rabbitmq_1 | ** When server state = {error,"tls_connection:format_status/2 crashed"} rabbitmq_1 | ** Reason for termination = error:function_clause rabbitmq_1 | ** Callback mode = state_functions rabbitmq_1 | ** Stacktrace = rabbitmq_1 | ** [{tls_connection,gen_handshake,[error,{call,{&lt;0.362.0&gt;,#Ref&lt;0.2669730211.1202454530.228189&gt;}},{new_user,&lt;0.359.0&gt;},{{options,{keyfil$ ,"/certificates/server_key.pem",{error,eacces}}},{state,server,{#Ref&lt;0.2669730211.1202454530.228187&gt;,&lt;0.362.0&gt;},gen_tcp,tls_connection,tcp,tcp_closed,$ cp_error,"localhost",5671,#Port&lt;0.26641&gt;,{ssl_options,tls,[{3,3},{3,2},{3,1}],verify_none,{#Fun&lt;ssl.8.51913203&gt;,[]},#Fun&lt;ssl.9.51913203&gt;,false,false,u$ defined,1,&lt;&lt;"/certificates/server_certificate.pem"&gt;&gt;,undefined,&lt;&lt;"/certificates/server_key.pem"&gt;&gt;,undefined,[],undefined,&lt;&lt;"/certificates/ca_certifica$ e.pem"&gt;&gt;,undefined,undefined,undefined,undefined,undefined,[&lt;&lt;"�,"&gt;&gt;,&lt;&lt;"�0"&gt;&gt;,&lt;&lt;"�$"&gt;&gt;,&lt;&lt;"�("&gt;&gt;,&lt;&lt;"�."&gt;&gt;,&lt;&lt;"�2"&gt;&gt;,&lt;&lt;"�&amp;"&gt;&gt;,&lt;&lt;"�*"&gt;&gt;,&lt;&lt;204,20&gt;&gt;,&lt;&lt;204,1$ &gt;&gt;,&lt;&lt;204,21&gt;&gt;,&lt;&lt;0,159&gt;&gt;,&lt;&lt;0,163&gt;&gt;,&lt;&lt;0,107&gt;&gt;,&lt;&lt;0,106&gt;&gt;,&lt;&lt;0,157&gt;&gt;,&lt;&lt;0,61&gt;&gt;,&lt;&lt;"�+"&gt;&gt;,&lt;&lt;"�/"&gt;&gt;,&lt;&lt;"�#"&gt;&gt;,&lt;&lt;"�'"&gt;&gt;,&lt;&lt;"�-"&gt;&gt;,&lt;&lt;"�1"&gt;&gt;,&lt;&lt;"�%"&gt;&gt;,&lt;&lt;"�)"&gt;&gt;,&lt;&lt;0,1$ 8&gt;&gt;,&lt;&lt;0,162&gt;&gt;,&lt;&lt;0,103&gt;&gt;,&lt;&lt;0,64&gt;&gt;,&lt;&lt;0,156&gt;&gt;,&lt;&lt;0,60&gt;&gt;,&lt;&lt;"� "&gt;&gt;,&lt;&lt;192,20&gt;&gt;,&lt;&lt;0,57&gt;&gt;,&lt;&lt;0,56&gt;&gt;,&lt;&lt;192,5&gt;&gt;,&lt;&lt;192,15&gt;&gt;,&lt;&lt;0,53&gt;&gt;,&lt;&lt;"�\t"&gt;&gt;,&lt;&lt;192,19&gt;&gt;,&lt;&lt;0,51&gt;&gt;$ &lt;&lt;0,50&gt;&gt;,&lt;&lt;192,4&gt;&gt;,&lt;&lt;192,14&gt;&gt;,&lt;&lt;0,47&gt;&gt;,&lt;&lt;"�\b"&gt;&gt;,&lt;&lt;192,18&gt;&gt;,&lt;&lt;0,22&gt;&gt;,&lt;&lt;0,19&gt;&gt;,&lt;&lt;192,3&gt;&gt;,&lt;&lt;"� "&gt;&gt;,&lt;&lt;0,10&gt;&gt;],#Fun&lt;ssl.2.51913203&gt;,true,268435456,false,$ rue,infinity,false,undefined,undefined,undefined,undefined,true,undefined,[],undefined,false,true,one_n_minus_one,undefined,false,{ssl_crl_cache,{inte$ nal,[]}},[{sha512,ecdsa},{sha512,rsa},{sha384,ecdsa},{sha384,rsa},{sha256,ecdsa},{sha256,rsa},{sha224,ecdsa},{sha224,rsa},{sha,ecdsa},{sha,rsa},{sha,ds a}],{elliptic_curves,[{1,3,132,0,39},{1,3,132,0,38},{1,3,132,0,35},{1,3,36,3,3,2,8,1,1,13},{1,3,132,0,36},{1,3,132,0,37},{1,3,36,3,3,2,8,1,1,11},{1,3,1 32,0,34},{1,3,132,0,16},{1,3,132,0,17},{1,3,36,3,3,2,8,1,1,7},{1,3,132,0,10},{1,2,840,10045,3,1,7},{1,3,132,0,3},{1,3,132,0,26},{1,3,132,0,27},{1,3,132 ,0,32},{1,3,132,0,33},{1,3,132,0,24},{1,3,132,0,25},{1,3,132,0,31},{1,2,840,10045,3,1,1},{1,3,132,0,1},{1,3,132,0,2},{1,3,132,0,15},{1,3,132,0,9},{1,3, 132,0,8},{1,3,132,0,30}]},false,false,262144},{socket_options,binary,raw,0,0,false},#{current_read =&gt; #{beast_mitigation =&gt; one_n_minus_one,cipher_stat e =&gt; undefined,client_verify_data =&gt; undefined,compression_state =&gt; undefined,mac_secret =&gt; undefined,secure_renegotiation =&gt; undefined,security_parame ters =&gt; {security_parameters,&lt;&lt;0,0&gt;&gt;,0,0,0,0,0,0,0,0,0,0,0,undefined,undefined,undefined,undefined},sequence_number =&gt; 0,server_verify_data =&gt; undefine d},current_write =&gt; #{beast_mitigation =&gt; one_n_minus_one,cipher_state =&gt; undefined,client_verify_data =&gt; undefined,compression_state =&gt; undefined,mac_ secret =&gt; undefined,secure_renegotiation =&gt; undefined,security_parameters =&gt; {security_parameters,&lt;&lt;0,0&gt;&gt;,0,0,0,0,0,0,0,0,0,0,0,undefined,undefined,und efined,undefined},sequence_number =&gt; 0,server_verify_data =&gt; undefined},pending_read =&gt; #{beast_mitigation =&gt; one_n_minus_one,cipher_state =&gt; undefined ,client_verify_data =&gt; undefined,compression_state =&gt; undefined,mac_secret =&gt; undefined,secure_renegotiation =&gt; undefined,security_parameters =&gt; {secur ity_parameters,undefined,0,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,&lt;&lt;90 ,212,167,50,197,80,21,183,229,252,83,2,191,100,222,147,149,112,255,82,15,77,192,185,123,46,121,210,16,197,219,183&gt;&gt;,undefined},server_verify_data =&gt; un defined},pending_write =&gt; #{beast_mitigation =&gt; one_n_minus_one,cipher_state =&gt; undefined,client_verify_data =&gt; undefined,compression_state =&gt; undefine d,mac_secret =&gt; undefined,secure_renegotiation =&gt; undefined,security_parameters =&gt; {security_parameters,undefined,0,undefined,undefined,undefined,undef ined,undefined,undefined,undefined,...},...}},...}}],...},...] rabbitmq_1 | 2018-04-16 13:37:54.146 [error] &lt;0.537.0&gt; CRASH REPORT Process &lt;0.537.0&gt; with 0 neighbours crashed with reason: no function clause matchi ng tls_connection:gen_handshake(error, {call,{&lt;0.362.0&gt;,#Ref&lt;0.2669730211.1202454530.228189&gt;}}, {new_user,&lt;0.359.0&gt;}, {{options,{keyfile,"/certificates /server_key.pem",{error,eacces}}},{state,server,{#Ref&lt;0.2669730211.1202454530.228187&gt;,...},...}}) line 714 rabbitmq_1 | 2018-04-16 13:37:54.148 [error] &lt;0.203.0&gt; Supervisor tls_connection_sup had child undefined started with {tls_connection,start_link,undef ined} at &lt;0.537.0&gt; exit with reason no function clause matching tls_connection:gen_handshake(error, {call,{&lt;0.362.0&gt;,#Ref&lt;0.2669730211.1202454530.22818 9&gt;}}, {new_user,&lt;0.359.0&gt;}, {{options,{keyfile,"/certificates/server_key.pem",{error,eacces}}},{state,server,{#Ref&lt;0.2669730211.1202454530.228187&gt;,...} ,...}}) line 714 in context child_terminated rabbitmq_1 | 2018-04-16 13:37:54.148 [error] &lt;0.360.0&gt; Supervisor {&lt;0.360.0&gt;,ranch_acceptors_sup} had child {acceptor,&lt;0.360.0&gt;,1} started with ranch_acceptor:start_link({sslsocket,nil,{#Port&lt;0.26210&gt;,{config,{ssl_options,tls,[{3,3},{3,2},{3,1}],verify_none,{#Fun&lt;ssl.8..&gt;,...},...},...}}}, ranch_ssl, &lt;0.359.0&gt;) at &lt;0.362.0&gt; exit with reason {{function_clause,[{tls_connection,gen_handshake,[error,{call,{&lt;0.362.0&gt;,#Ref&lt;0.2669730211.1202454530.228189&gt; }},{new_user,&lt;0.359.0&gt;},{{options,{keyfile,"/certificates/server_key.pem",{error,eacces}}},{state,server,{#Ref&lt;0.2669730211.1202454530.228187&gt;,&lt;0.362.0 &gt;},gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,"localhost",5671,#Port&lt;0.26641&gt;,{ssl_options,tls,[{3,3},{3,2},{3,1}],verify_none,{#Fun&lt;ssl.8.5191320 3&gt;,[]},#Fun&lt;ssl.9.51913203&gt;,false,false,undefined,1,&lt;&lt;"/certificates/server_certifica..."&gt;&gt;,...},...}}],...},...]},...} in context child_terminated </code></pre> <p>This is my Go client:</p> <pre><code>package main import ( "fmt" "log" "crypto/tls" "crypto/x509" "io/ioutil" "github.com/streadway/amqp" ) func failOnError(err error, msg string) { if err != nil { log.Fatalf("%s: %s", msg, err) panic(fmt.Sprintf("%s: %s", msg, err)) } } func main() { cfg := new(tls.Config) cfg.RootCAs = x509.NewCertPool() if ca, err := ioutil.ReadFile("/certificates/ca_certificate.pem"); err == nil { cfg.RootCAs.AppendCertsFromPEM(ca) } if cert, err := tls.LoadX509KeyPair("/certificates/client_certificate.pem", "/certificates/client_key.pem"); err == nil { cfg.Certificates = append(cfg.Certificates, cert) } conn, err := amqp.DialTLS("amqps://guest:guest@rabbitmq:5671", cfg) failOnError(err, "Failed to connect to RabbitMQ") defer conn.Close() ch, err := conn.Channel() failOnError(err, "Failed to open a channel") defer ch.Close() q, err := ch.QueueDeclare( "hello", // name false, // durable false, // delete when unused false, // exclusive false, // no-wait nil, // arguments ) failOnError(err, "Failed to declare a queue") msgs, err := ch.Consume( q.Name, // queue "", // consumer true, // auto-ack false, // exclusive false, // no-local false, // no-wait nil, // args ) failOnError(err, "Failed to register a consumer") forever := make(chan bool) go func() { for d := range msgs { log.Printf("Received a message: %s", d.Body) } }() log.Printf(" [*] Waiting for messages. To exit press CTRL+C") &lt;-forever } </code></pre> <p>And this is my RabbitMQ config file:</p> <pre><code>loopback_users.guest = false listeners.tcp.default = 5672 hipe_compile = false management.listener.port = 15672 management.listener.ssl = false listeners.ssl.1 = 5671 ssl_options.cacertfile = /certificates/ca_certificate.pem ssl_options.certfile = /certificates/server_certificate.pem ssl_options.keyfile = /certificates/server_key.pem </code></pre> <p>I don't know Erlang nor do I have experience with RabbitMQ itself or even TLS for that matter, and this forum post was the closest I got for this issue:</p> <p><a href="https://bugs.erlang.org/browse/ERL-539" rel="nofollow noreferrer">https://bugs.erlang.org/browse/ERL-539</a></p> <p>Any ideas of what could cause this?</p> <p>Some additional details: </p> <ul> <li><strong>Erlang version</strong>: 20</li> <li><strong>Erlang SSL version</strong>: 20.2</li> <li><strong>RabbitMQ version</strong>: 3.7.4</li> <li>Running within <code>docker-compose</code> using RabbitMQ's official image</li> <li>I've generated the certificates using the <strong>tls-gen</strong> tool as suggested by the <a href="https://www.rabbitmq.com/ssl.html" rel="nofollow noreferrer" title="official documentation">official documentation</a>.</li> </ul> </div>

Docker - Ubuntu - Nginx - MariaDB - 连接被拒绝

<div class="post-text" itemprop="text"> <p>Im trying to setup a docker container on OSX with Docker - Ubuntu - Nginx - MariaDB to run a Laravel App</p> <p>My docker settings are:</p> <pre><code>version: "2" services: nginx: build: context: ./nginx ports: - "8080:80" volumes: - ./app:/var/app fpm: build: context: ./fpm volumes: - ./app:/var/app expose: - "9000" environment: - "DB_HOST=db" - "DB_DATABASE=laravel_db" db: image: mariadb ports: - "33061:3306" environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=laravel_db volumes: - ./database:/var/lib/mysql </code></pre> <p>And the 2 docker files:</p> <pre><code>FROM nginx ADD ./default.conf /etc/nginx/conf.d/ RUN echo "daemon off;" &gt;&gt; /etc/nginx/nginx.conf CMD service nginx start </code></pre> <hr> <pre><code>FROM ubuntu:latest RUN apt-get update &amp;&amp; apt-get install -y software-properties-common language-pack-en-base \ &amp;&amp; LC_ALL=en_US.UTF-8 add-apt-repository -y ppa:ondrej/php \ &amp;&amp; apt-get update \ &amp;&amp; apt-get install -y php7.0 php7.0-fpm php7.0-mysql mcrypt php7.0-gd curl \ php7.0-curl php-redis php7.0-mbstring sendmail supervisor \ &amp;&amp; mkdir /run/php \ &amp;&amp; apt-get clean &amp;&amp; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf RUN sed -i -e 's/listen = \/run\/php\/php7.0-fpm.sock/listen = 0.0.0.0:9000/g' /etc/php/7.0/fpm/pool.d/www.conf \ &amp;&amp; sed -i -e 's/;daemonize = yes/daemonize = no/g' /etc/php/7.0/fpm/php-fpm.conf WORKDIR /var/app EXPOSE 9000 CMD ["/usr/bin/supervisord"] </code></pre> <p>So far so good. I can access the Laravel App homepage as <strong>localhost:8080</strong> and use Sequel Pro to access the MySQL DB.</p> <p>But when access to the Laravel route that requires DB query, it returns "Connection refused"</p> <p>Then I create a raw PHP file to make a DB connection test:</p> <pre><code>$link = mysqli_connect('127.0.0.1', 'root', 'root', 'laravel_db', 33061); if(!$link) { die('failed to connect to the server: ' . mysqli_connect_error()); } </code></pre> <p>And I get connection refused error as well.</p> <p>I tried using 127.0.0.1 and localhost but no hope.</p> <p>Tried to google it but most answers are about ports are not published...</p> <p>Thanks</p> </div>

关于nodejs express项目文件夹移动位置后找不到express模块的问题

各位高手大家好 , 小弟初学nodejs 遇到一个百思不得其解的问题,就是我新建了一个express项目, 在D:\service文件夹下,这给service文件夹里有node__modules文件夹的,并且,express模块是 安装在里面的,我用的不是全局安装。在该目录下用supervisor调试运行正常,然后 我把service文件夹 拷到E盘下,再运行就报错找不到express模块。请问,不是说nodejs项目 运行会自动搜索当前目录的node_modules文件夹吗?里面各个模块安装都好好的,为什么 整个文件拷到 另一个地方就不行了呢,并且 我打开node_modules里的express,会显示 找不到引用的位置。而拷回去就好了,不知道是为什么,怎样才能在整个项目拷到别 的盘上的时候找到模块呢?这样固定在一个地方,岂不是没法移植了?

Hue安装的问题(启动失败)

我的hadoop集群是在centos上安装的,最近测试安装hue.build完成之后,启动hue爆出如下错误: KeyError: "Couldn't get user id for user hue" 参考:https://github.com/cloudera/hue/issues/27 增加了hue用户,再次启动还是报错. Traceback (most recent call last): File "/home/spark/hue/branch-3.9/build/env/bin/hue", line 11, in <module> load_entry_point('desktop', 'console_scripts', 'hue')() File "/home/spark/hue/branch-3.9/desktop/core/src/desktop/manage_entry.py", line 59, in entry execute_from_command_line(sys.argv) File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command commands = get_commands() File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands apps = settings.INSTALLED_APPS File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__ self._setup(name) File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup self._wrapped = Settings(settings_module) File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 128, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/home/spark/hue/branch-3.9/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module __import__(name) File "/home/spark/hue/branch-3.9/desktop/core/src/desktop/settings.py", line 34, in <module> from desktop.lib.python_util import force_dict_to_strings File "/home/spark/hue/branch-3.9/desktop/core/src/desktop/lib/python_util.py", line 23, in <module> from desktop import conf File "/home/spark/hue/branch-3.9/desktop/core/src/desktop/conf.py", line 29, in <module> from desktop.lib.conf import Config, ConfigSection, UnspecifiedConfigSection,\ File "/home/spark/hue/branch-3.9/desktop/core/src/desktop/lib/conf.py", line 72, in <module> import configobj KeyboardInterrupt 请大家帮我看一下这是什么问题?谢谢

cloudera manager CM-5.11.2,启动完少一个主机(server主机)

cloudera manager CM-5.11.2,启动完少一个主机(server主机) 两台机器的agent都启动成功了 如题,装了CM5.11.2,一个server 一个agent; 登录页面设置的时候,只显示一台子节点agent主机没有主节点; 有相同情况的朋友说下解决办法??(mysql里面的CM数据库hosts表,看了,只有1个agent 的信息,没有server那台机的)

ejabberd外部认证php sql server

<div class="post-text" itemprop="text"> <p>I have a ejabberd 15.03 server in a centOS virtual machine and i need to implement an external authentification method with php against SQL server. The official documentation shows a php/mysql example <a href="https://www.ejabberd.im/files/efiles/check_mysql.php.txt" rel="nofollow">php/mysql external authentification</a></p> <p>Are there a method to change this example to php/sqlserver and functions such as mysql_ping.</p> <p>Here is an example i wrote and put it under /opt/auth/ and configured ejabberd.yml to execute is as external authentification.</p> <pre><code>$auth = new JabberAuth(); $auth-&gt;dbhost = "hostIP"; $auth-&gt;dbuser = "user"; $auth-&gt;dbpass = "pass"; $auth-&gt;dbbase = "databaseName"; $auth-&gt;play(); // We simply start process ! class JabberAuth { var $dbhost; var $dbuser; var $dbpass; var $dbbase; var $debug = false; /* Debug mode */ var $debugfile = "/opt/auth/log/pipe-debug.log"; /* Debug output */ var $logging = false; /* Do we log requests ? */ var $logfile = "/opt/auth/log/pipe-log.log" ; /* Log file ... */ /* * For both debug and logging, ejabberd have to be able to write. */ var $jabber_user; /* This is the jabber user passed to the script. filled by $this-&gt;command() */ var $jabber_pass; /* This is the jabber user password passed to the script. filled by $this-&gt;command() */ var $jabber_server; /* This is the jabber server passed to the script. filled by $this-&gt;command(). Useful for VirtualHosts */ var $jid; /* Simply the JID, if you need it, you have to fill. */ var $data; /* This is what SM component send to us. */ var $dateformat = "M d H:i:s"; /* Check date() for string format. */ var $command; /* This is the command sent ... */ var $mysock; /* MySQL connection ressource */ var $stdin; /* stdin file pointer */ var $stdout; /* stdout file pointer */ function JabberAuth() { @define_syslog_variables(); @openlog("pipe-auth", LOG_NDELAY, LOG_SYSLOG); if($this-&gt;debug) { @error_reporting(E_ALL); @ini_set("log_errors", "1"); @ini_set("error_log", $this-&gt;debugfile); } $this-&gt;logg("Starting pipe-auth ..."); // We notice that it's starting ... $this-&gt;openstd(); } function stop() { $this-&gt;logg("Shutting down ..."); // Sorry, have to go ... closelog(); $this-&gt;closestd(); // Simply close files exit(0); // and exit cleanly } function openstd() { $this-&gt;stdout = @fopen("php://stdout", "w"); // We open STDOUT so we can read $this-&gt;stdin = @fopen("php://stdin", "r"); // and STDIN so we can talk ! } function readstdin() { $l = @fgets($this-&gt;stdin, 3); // We take the length of string $length = @unpack("n", $l); // ejabberd give us something to play with ... $len = $length["1"]; // and we now know how long to read. if($len &gt; 0) { // if not, we'll fill logfile ... and disk full is just funny once $this-&gt;logg("Reading $len bytes ... "); // We notice ... $data = @fgets($this-&gt;stdin, $len+1); // $data = iconv("UTF-8", "ISO-8859-15", $data); // To be tested, not sure if still needed. $this-&gt;data = $data; // We set what we got. $this-&gt;logg("IN: ".$data); } } function closestd() { @fclose($this-&gt;stdin); // We close everything ... @fclose($this-&gt;stdout); } function out($message) { @fwrite($this-&gt;stdout, $message); // We reply ... $dump = @unpack("nn", $message); $dump = $dump["n"]; $this-&gt;logg("OUT: ". $dump); } function myalive() { if(!is_resource($this-&gt;mysock) || !@mysql_ping($this-&gt;mysock)) { // check if we have a MySQL connection and if it's valid. $this-&gt;mysql(); // We try to reconnect if MySQL gone away ... return @mysql_ping($this-&gt;mysock); // we simply try again, to be sure ... } else { return true; // so good ! } } function play() { do { $this-&gt;readstdin(); // get data $length = strlen($this-&gt;data); // compute data length if($length &gt; 0 ) { // for debug mainly ... $this-&gt;logg("GO: ".$this-&gt;data); $this-&gt;logg("data length is : ".$length); } $ret = $this-&gt;command(); // play with data ! $this-&gt;logg("RE: " . $ret); // this is what WE send. $this-&gt;out($ret); // send what we reply. $this-&gt;data = NULL; // more clean. ... } while (true); } function command() { $data = $this-&gt;splitcomm(); // This is an array, where each node is part of what SM sent to us : // 0 =&gt; the command, // and the others are arguments .. e.g. : user, server, password ... if($this-&gt;myalive()) { // Check we can play with MySQL if(strlen($data[0]) &gt; 0 ) { $this-&gt;logg("Command was : ".$data[0]); } switch($data[0]) { case "isuser": // this is the "isuser" command, used to check for user existance $this-&gt;jabber_user = $data[1]; $parms = $data[1]; // only for logging purpose $return = $this-&gt;checkuser(); break; case "auth": // check login, password $this-&gt;jabber_user = $data[1]; $this-&gt;jabber_pass = $data[3]; $parms = $data[1].":".$data[2].":".md5($data[3]); // only for logging purpose $return = $this-&gt;checkpass(); break; case "setpass": $return = false; // We do not want jabber to be able to change password break; default: $this-&gt;stop(); // if it's not something known, we have to leave. // never had a problem with this using ejabberd, but might lead to problem ? break; } $return = ($return) ? 1 : 0; if(strlen($data[0]) &gt; 0 &amp;&amp; strlen($parms) &gt; 0) { $this-&gt;logg("Command : ".$data[0].":".$parms." ==&gt; ".$return." "); } return @pack("nn", 2, $return); } else { // $this-&gt;prevenir(); // Maybe useful to tell somewhere there's a problem ... return @pack("nn", 2, 0); // it's so bad. } } function checkpass() { $hash=sha1($this-&gt;jabber_pass); $query = mssql_query("SELECT [attribute] FROM [DatabaseName].[dbo].[table] where (S_USERNAME='$this-&gt;jabber_user') AND (SUBSTRING(S_PASSWORD,1,(LEN(S_PASSWORD)-3)))='$hash'"); // Check if there were any records if (!mssql_num_rows($query)) { return false; } else { return true; } } function checkuser() { $query = mssql_query("SELECT [attribute] FROM [DatabaseName].[dbo].[table] where S_USERNAME='$this-&gt;jabber_user'"); // Check if there were any records if (!mssql_num_rows($query)) { return false; } else { return true; } } function splitcomm() // simply split command and arugments into an array. { return explode(":", $this-&gt;data); } function mysql() // "MySQL abstraction", this opens a permanent MySQL connection, and fill the ressource { $this-&gt;mysock = @mssql_pconnect($this-&gt;dbhost, $this-&gt;dbuser, $this-&gt;dbpass); echo '1'; var_dump($this-&gt;mysock); @mssql_select_db($this-&gt;dbbase, $this-&gt;mysock); $this-&gt;logg("MsSql :: ". (is_resource($this-&gt;mysock) ? "Connecté" : "Déconnecté")); } function logg($message) // pretty simple, using syslog. // some says it doesn't work ? perhaps, but AFAIR, it was working. { if($this-&gt;logging) { @syslog(LOG_INFO, $message); } } } </code></pre> <p>This did not make any php error. But in ejabberd.log i'm always getting 'extauth script has exitted abruptly with reason 'normal' '</p> <p>This is the crash report in crash.log</p> <blockquote> <p>2015-04-01 17:44:12 =CRASH REPORT==== crasher: initial call: ejabberd_http:init/2 pid: &lt;0.8779.0&gt; registered_name: [] exception error: bad argument: [{extauth,call_port,2,[{file,"src/extauth.erl"},{line,99}]},{ejabberd_auth_external,check_password_extauth,3,[{file,"src/ejabberd_auth_external.erl"},{line,182}]},{ejabberd_auth_external,check_password_external_cache,3,[{file,"src/ejabberd_auth_external.erl"},{line,244}]},{ejabberd_auth,check_password_loop,2,[{file,"src/ejabberd_auth.erl"},{line,158}]},{ejabberd_auth,check_password,3,[{file,"src/ejabberd_auth.erl"},{line,106}]},{ejabberd_web_admin,get_auth_account,5,[{file,"src/ejabberd_web_admin.erl"},{line,266}]},{ejabberd_web_admin,process,2,[{file,"src/ejabberd_web_admin.erl"},{line,221}]},{ejabberd_http,process,5,[{file,"src/ejabberd_http.erl"},{line,359}]}] ancestors: [ejabberd_http_sup,ejabberd_sup,&lt;0.37.0&gt;] messages: [] links: [&lt;0.327.0&gt;,#Port&lt;0.12042&gt;] dictionary: [{random_seed,{2036,6729,29501}}] trap_exit: false status: running heap_size: 2586 stack_size: 27 reductions: 1244 neighbours: 2015-04-01 17:44:12 =SUPERVISOR REPORT==== Supervisor: {local,ejabberd_http_sup} Context: child_terminated Reason: badarg Offender: [{pid,&lt;0.8779.0&gt;},{name,undefined},{mfargs,{ejabberd_http,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]</p> </blockquote> <p>It seem to be a misconfiguration error. This is what i added to ejabberd.yml</p> <pre><code>auth_method: external extauth_program: "php -f /etc/ejabberd-15.03/auth_script.php" extauth_cache: 600 extauth_instances: 3 </code></pre> </div>

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

你连存活到JDK8中著名的Bug都不知道,我怎么敢给你加薪

CopyOnWriteArrayList.java和ArrayList.java,这2个类的构造函数,注释中有一句话 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public ArrayList(Collection&lt;? ...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

记录下入职中软一个月(外包华为)

我在年前从上一家公司离职,没想到过年期间疫情爆发,我也被困在家里,在家呆着的日子让人很焦躁,于是我疯狂的投简历,看面试题,希望可以进大公司去看看。 我也有幸面试了我觉得还挺大的公司的(虽然不是bat之类的大厂,但是作为一名二本计算机专业刚毕业的大学生bat那些大厂我连投简历的勇气都没有),最后选择了中软,我知道这是一家外包公司,待遇各方面甚至不如我的上一家公司,但是对我而言这可是外包华为,能...

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

培训班出来的人后来都怎么样了?(二)

接着上回说,培训班学习生涯结束了。后面每天就是无休止的背面试题,不是没有头脑的背,培训公司还是有方法的,现在回想当时背的面试题好像都用上了,也被问到了。回头找找面试题,当时都是打印下来天天看,天天背。 不理解呢也要背,面试造飞机,上班拧螺丝。班里的同学开始四处投简历面试了,很快就有面试成功的,刚开始一个,然后越来越多。不知道是什么原因,尝到胜利果实的童鞋,不满足于自己通过的公司,嫌薪水要少了,选择...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

6年开发经验女程序员,面试京东Java岗要求薪资28K

写在开头: 上周面试了一位女程序员,上午10::30来我们部门面试,2B哥接待了她.来看看她的简历: 个人简历 个人技能: ● 熟悉spring mvc 、spring、mybatis 等框架 ● 熟悉 redis 、rocketmq、dubbo、zookeeper、netty 、nginx、tomcat、mysql。 ● 阅读过juc 中的线程池、锁的源...

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

SpringBoot系列之Redis缓存使用详细教程

Spring的缓存抽象 Spring从3.1开始定义了一系列抽象接口来统一不同的缓存技术;并支持使用Java Caching(JSR-107)注解简化我们进行缓存开发。Spring Cache 只负责维护抽象层,具体的实现由你的技术选型来决定。将缓存处理和缓存技术解除耦合。 JSR107 Java Caching(JSR-107)定义了5个核心接口,分别是CachingProvider, Cach...

推荐9个能让你看一天的网站

分享的这9个保证另你意外的网站,每个都非常实用!非常干货!毫不客气的说,这些网站最少值10万块钱。 利用好这些网站,会让你各方面的技能都得到成长,不说让你走上人生巅峰,但对比现在的你,在眼界、学识、技能方面都有质的飞跃。 一、AIRPANO 传送门:https://www.airpano.com/360photo_list.php 这是一个可以躺在家里,就能环游世界的神奇网站。 世界那么大,绝大多...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

月薪22K程序员,打卡迟到10次,收到工资短信一脸懵逼

每家公司为了保证公司员工每天的工作时间,一般都会采用上下班打卡的工作制度,这其实是一个很常见的是,本身也没有什么问题的。正所谓无规矩不成方圆,公司肯定是有公司的规矩,虽然每个员工都很不喜欢这些规矩来束缚我们,但是公司也只是为了能更好的管理员工。但是一家公司如果一成不变的使用打卡制度,而不会去变通管理,也真不一定是好事。 打卡制度特别对于销售部门来说,不但会让公司发展不起来,还很容易丢失员工。但如...

97年世界黑客编程大赛冠军作品(大小仅为16KB),惊艳世界的编程巨作

这是世界编程大赛第一名作品(97年Mekka ’97 4K Intro比赛)汇编语言所写。 整个文件只有4095个字节, 大小仅仅为16KB! 不仅实现了3D动画的效果!还有一段震撼人心的背景音乐!!! 内容无法以言语形容,实在太强大! 下面是代码,具体操作看最后! @echo off more +1 %~s0|debug e100 33 f6 bf 0 20 b5 10 f3 a5...

程序员是做全栈工程师好?还是专注一个领域好?

昨天,有位大一的同学私信我,说他要做全栈工程师。 我一听,这不害了孩子么,必须制止啊。 谁知,讲到最后,更确定了他做全栈程序员的梦想。 但凡做全栈工程师的,要么很惨,要么很牛! 但凡很牛的,绝不是一开始就是做全栈的! 全栈工程师听起来好听,但绝没有你想象的那么简单。 今天听我来给你唠,记得帮我点赞哦。 一、全栈工程师的职责 如果你学习编程的目的只是玩玩,那随意,想怎么学怎么学。...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

什么是a站、b站、c站、d站、e站、f站、g站、h站、i站、j站、k站、l站、m站、n站?00后的世界我不懂!

A站 AcFun弹幕视频网,简称“A站”,成立于2007年6月,取意于Anime Comic Fun,是中国大陆第一家弹幕视频网站。A站以视频为载体,逐步发展出基于原生内容二次创作的完整生态,拥有高质量互动弹幕,是中国弹幕文化的发源地;拥有大量超粘性的用户群体,产生输出了金坷垃、鬼畜全明星、我的滑板鞋、小苹果等大量网络流行文化,也是中国二次元文化的发源地。 B站 全称“哔哩哔哩(bilibili...

十个摸鱼,哦,不对,是炫酷(可以玩一整天)的网站!!!

文章目录前言正文**1、Kaspersky Cyberthreat real-time map****2、Finding Home****3、Silk – Interactive Generative Art****4、Liquid Particles 3D****5、WINDOWS93****6、Staggering Beauty****7、Ostagram图片生成器网址****8、全历史网址*...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

​能让德国人放弃现金支付​,也没谁了

在新冠疫情中,德国人越来越多地选择在超市,加油站或其他商店付款时使用非接触式付款方式。德国信贷协会Deutschen Kreditwirtschaft (DK) 的一位发言人告诉德国新...

大厂的 404 页面都长啥样?最后一个笑了...

每天浏览各大网站,难免会碰到404页面啊。你注意过404页面么?猿妹搜罗来了下面这些知名网站的404页面,以供大家欣赏,看看哪个网站更有创意: 正在上传…重新上传取消 腾讯 正在上传…重新上传取消 网易 淘宝 百度 新浪微博 正在上传…重新上传取消 新浪 京东 优酷 腾讯视频 搜...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

原来实现钉钉自动签到如此简单,每天准时上下班不是梦

本文主要介绍了如何利用现成软件快速实现钉钉自动签到功能,核心思路非常简单,甚至无任何编程基础的小白也能轻松实现定时自动打卡功能.

前端还能这么玩?(女朋友生日,用前端写了一个好玩的送给了她,高兴坏了)

前端还能这么玩?(女朋友生日,用前端写了一个好玩的送给了她,高兴坏了)

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

讲真,这两款idea插件,能治愈你英语不好的病

时不时就有小伙伴问我,“二哥,能推荐一款 IDE 吗?”你看这话问的,现在搞 Java 的不都在用 Intellij IDEA 吗,还用得着推荐(我已经和 Eclipse 分手了)。然后小伙伴又说,“二哥,IDEA 支持中文吗?我英语不太好。”你看这话问的,搞编程的,英语不好是硬伤啊! 不过,随着 IDEA 最新版(版本号是 2020.1)的发布,英语不好的病可以彻底治愈了。为什么这么说呢?因为 ...

面试官给我挖坑:a[i][j] 和 a[j][i] 有什么区别?

点击上方“朱小厮的博客”,选择“设为星标”后台回复&#34;1024&#34;领取公众号专属资料本文以一个简单的程序开头——数组赋值:int LEN = 10000; int[][] ...

在拼多多上班,是一种什么样的体验?我心态崩了呀!

之前有很多读者咨询我:武哥,在拼多多上班是一种什么样的体验?由于一直很忙,没抽出时间来和大家分享。上周末特地花点时间来写了一篇文章,跟大家分享一下拼多多的日常。 1. 倒时差的作息 可能很多小伙伴都听说了,拼多多加班很严重。这怎么说呢?作息上确实和其他公司有点区别,大家知道 996,那么自然也就能理解拼多多的“11 11 6”了。 所以当很多小伙伴早上出门时,他们是这样的: 我们是这样的: 当...

又一起程序员被抓事件

就在昨天互联网又发生一起让人心酸的程序员犯罪事件,著名的百度不限速下载软件 Pandownload PC 版作者被警方抓获。案件大致是这样的:软件的作者不仅非法盗取用户数据,还在QQ群进...

被阿里舍弃,2020年了,还有人在迷恋Oracle数据库?

数据库领域,有曾经被誉为地球最强的——Oracle数据库。 注意,这里说的是Oracle数据库,并非Oracle公司。在Oracle数据库最为顶峰的时候,世界500强、互联网公司、业界的DBA码农们,都将Oracle数据库其视为圣神不可侵犯的领袖。毫不夸张的说,那时的Oracle数据库,天上天下,唯我独尊。 那时虽然有IBM DB2、Microsoft SQL Server、Syba...

14个提高代码质量的好问题

阅读本文大概需要 2.6 分钟。并不是代码写的越多,代码的质量就越高。思考才是。解决一个问题,打开电脑就手撕代码,最终的结果往往是各种代码问题,经过一系列迭代后,代码积重难返,最终的结果...

Mysql性能优化:为什么count(*)这么慢?

导读在开发中一定会用到统计一张表的行数,比如一个交易系统,老板会让你每天生成一个报表,这些统计信息少不了sql中的count函数。但是随着记录越来越多,查询的速度会越来越慢,为什么会这样...

相关热词 c# 局部 截图 页面 c#实现简单的文件管理器 c# where c# 取文件夹路径 c# 对比 当天 c# fir 滤波器 c# 和站 队列 c# txt 去空格 c#移除其他类事件 c# 自动截屏
立即提问