Nginx启动时service nginx start出现错误

命令service nginx start


Starting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

然后查看详情systemctl status nginx.service

systemctl status nginx.service
● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2019-07-07 15:51:25 CST; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22685 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=5)Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3...ver...
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: nginx.service: control process exited, code=exited status=5
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IM...erver.
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: Unit nginx.service entered failed state.
Jul 07 15:51:25 iZwz9gionemu6x0y9pvxihZ systemd[1]: nginx.service failed.


配置文件检查了吗?nginx -t

MaYang_ 回复玫瑰:请问怎么解决的
大约一个月之前 回复
玫瑰与猫 检查了 成功 已经解决了
11 个月之前 回复
Csdn user default icon
nginx启动报错 Failed to start A high performance web server and a reverse proxy server.

``` root@tedu:/etc/nginx/sites-enabled# vim default ``` 修改了default文件 ``` location/static{ root /home/tarena/Download/ajax_day01_all/ajax_day01_all/mysite8; } ``` 增加了静态地址 分号没有漏掉 ``` sudo /etc/init.d/nginx restart ``` 运行报错 nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since 三 2019-10-30 14:36:12 CST; 13min ago Process: 13022 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/ (code=exite Process: 12334 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 13098 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Main PID: 12338 (code=exited, status=0/SUCCESS) 10月 30 14:36:12 tedu systemd[1]: Starting A high performance web server and a reverse proxy server... 10月 30 14:36:12 tedu nginx[13098]: nginx: [emerg] unknown directive "location/static" in /etc/nginx/sites-enabled/de 10月 30 14:36:12 tedu nginx[13098]: nginx: configuration file /etc/nginx/nginx.conf test failed 10月 30 14:36:12 tedu systemd[1]: nginx.service: Control process exited, code=exited status=1 10月 30 14:36:12 tedu systemd[1]: Failed to start A high performance web server and a reverse proxy server. 10月 30 14:36:12 tedu systemd[1]: nginx.service: Unit entered failed state. 10月 30 14:36:12 tedu systemd[1]: nginx.service: Failed with result 'exit-code'. ~ ~


<div class="post-text" itemprop="text"> <p>Server OS:Debian 8 "Jesse"</p> <p>I have tried to run the nginx service using "sudo service nginx start" which will result in failure. I then use the command "sudo nginx -t" to see what the issue is and this is the error that appears </p> <pre><code>nginx: [emerg] invalid number of arguments in "root" directive in /etc/nginx/sites-enabled/default:39 nginx: configuration file /etc/nginx/nginx.conf test failed </code></pre> <p>For more background here are lines 36 - 39 of my /etc/nginx/sites-enabled/default file</p> <pre><code>root /var/www/my_web_directory # Add index.php to the list if you are using PHP index index.php index.html index.htm; </code></pre> <p>More back story for anyone who may need to know. Im trying to run mybb this is why I added "index.php" to the file</p> <p>This issue has really been bothering me and I dont know any way to get around this. So if any has any answers please post your response. If you need anymore details feel free to ask and I will provide.</p> <p>-John</p> </div> 不见了,nginx启动失败

公司搬家,机器没有关好。 后来启动机器上的nginx(openresty中集成的nginx),但是启动会卡住,如果nginx -s reload,机会如下图 ![图片说明]( 网上的解决办法是nginx -c ....../nginx/conf/nginx.conf,但是还是会卡住不动,希望大佬神指点。 第一次提问,以前没有C币的意识,仅有1个铜板,见谅见谅

启动服务的时候总是出现这个提示Redirecting to /bin/systemctl start httpd.service

**我的系统是fedora20,启动服务(service httpd start)的时候总是会显示以下的错误Redirecting to /bin/systemctl start httpd.service,在网上查了一些资料,照着去做,修改了主机名,也关掉了selinux和检查了iptables,但是还是不行,希望了解这方面知识的您可以给出一些可行的建议,谢谢。**


<div class="post-text" itemprop="text"> <p>I would like to run nginx and php-fpm on container start, however I can't seem to do that. Here is my <code>Dockerfile</code>:</p> <pre><code>FROM php:7-fpm-alpine EXPOSE 9080 8000 EXPOSE 9088 80 WORKDIR /var/www COPY . . RUN apk add nginx composer php7-fpm &amp;&amp; \ composer install --no-progress &amp;&amp; \ mkdir -p /etc/nginx /etc/nginx/sites-available /etc/nginx/sites-enabled /run/nginx &amp;&amp; \ ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf &amp;&amp; \ cp nginx.conf /etc/nginx/conf.d/default.conf CMD ["nginx", "-g", "daemon off;"] </code></pre> <p>Container comes up and running, however when I run <code>ps aux</code> nginx is nowhere to be seen until I run <code>nginx</code> command (configuration is okay, <code>nginx -t</code> returns okay, and running it through open container does start the service). </p> <p>I've tried to chain <code>RUN php-fpm7 &amp;&amp; nginx</code> but that does nothing. </p> <p>Also using entrypoint like <code>ENTRYPOINT ["nginx"]</code> did nothing for me. </p> <p>How can I make sure those processes are running upon creating the container? </p> </div>

什么是这个错误? nginx [关闭]

<div class="post-text" itemprop="text"> <p>when i try to start NGINX i get "Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details." </p> <p>NGINX ERROR LOG:</p> <p><code>2017/01/03 03:08:05 [emerg] 15144#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:09:25 [emerg] 15214#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:09:48 [emerg] 15224#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:10:44 [emerg] 15237#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:11:18 [emerg] 15253#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:13:25 [emerg] 15321#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:14:04 [emerg] 15345#0: unknown directive "index.html" in /etc/nginx/sites-enabled/default:33 2017/01/03 03:15:40 [emerg] 15369#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:35 2017/01/03 03:16:28 [emerg] 15393#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:37 2017/01/03 03:17:56 [emerg] 15421#0: unexpected "}" in /etc/nginx/sites-enabled/default:60 2017/01/03 03:18:25 [emerg] 15443#0: unexpected end of file, expecting ";" or "}" in /etc/nginx/sites-enabled/default:81 2017/01/03 03:19:14 [emerg] 15466#0: unexpected "}" in /etc/nginx/sites-enabled/default:80 2017/01/03 03:20:10 [emerg] 15489#0: unexpected "}" in /etc/nginx/sites-enabled/default:60 2017/01/03 03:22:06 [emerg] 15515#0: unexpected "}" in /etc/nginx/sites-enabled/default:60</code></p> <p>Default CONG: <a href="" rel="nofollow noreferrer"></a></p> </div>


nginx改了配置文件后启动不起来了 http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 443 ssl ; server_name; ssl_certificate /home/Nginx/1_www.1haoshopping.cn_bundle.crt; ssl_certificate_key /home/Nginx/; ssl_session_timeout 5000m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL; ssl_prefer_server_ciphers on; add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header Content-Security-Policy upgrade-insecure-requests; if ( $scheme = http ) { rewrite ^/(.*) https://$server_name/ permanent; } #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass; proxy_set_header HOST $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on # #location ~ \.php$ { # proxy_pass; #} # pass the PHP scripts to FastCGI server listening on # #location ~ \.php$ { # root html; # fastcgi_pass; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} }

nginx Active: failed (Result: exit-code)

● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-01-29 16:13:38 CST; 2min 12s ago Docs: man:nginx(8) Process: 346 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ systemd[1]: Starting A high performance web server and a reverse proxy server... Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ nginx[346]: nginx: [emerg] open() "/etc/nginx/uwsgi_params" failed (2: No such file or directory) in /etc/nginx/ngin Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ nginx[346]: nginx: configuration file /etc/nginx/nginx.conf test failed Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ systemd[1]: nginx.service: Control process exited, code=exited status=1 Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ systemd[1]: nginx.service: Failed with result 'exit-code'. Jan 29 16:13:38 iZuf6ho8zm29gfku9v72vnZ systemd[1]: Failed to start A high performance web server and a reverse proxy server.

nginx无法重启 “/var/run/nginx/”failed

我第一次启动是可以成功访问的,之后我重启了电脑,再次启动的时候报错了 ![图片说明]( 我看网上说要用-c参数,我也试了,还是不行 ![图片说明]( 还有一个疑问是,我看别人的目录结构里都有logs这个文件,但我的找不到logs这个目录,只有conf,html ,sbin 三个文件夹 有没有知道怎么解决的帮下小弟,万分感谢。

Nginx Centos7 Laravel 5无法写入日志文件[关闭]

<div class="post-text" itemprop="text"> <p>I got a brand new Centos 7 server and would like to install laravel + nginx</p> <p>I added Remi repo for PHP5.6 Also added epel</p> <pre><code>yum update yum install nmap rsync nano wget curl yum install epel-release rpm -Uvh nano /etc/yum.repos.d/remi.repo yum install nginx systemctl start nginx systemctl enable nginx sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-service=https sudo firewall-cmd --reload #PHP yum install php php-mysql php-fpm php-dom php-mcrypt php-mbstring nano /etc/php.ini cgi.fix_pathinfo=0 nano /etc/php-php.d/www.conf listen = /var/run/php-fpm/php-fpm.sock listen.owner = nobody = nobody user = nginx group = nginx systemctl start php-fpm systemctl enable php-fpm </code></pre> <p>The NGINX server is working, and phpinfo(); is looking good too.</p> <p>inside /etc/nginx/nginx.conf:</p> <pre><code># For more information on configuration, see: # * Official English Documentation: # * Official Russian Documentation: user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See # for more information. include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; listen [::]:80 default_server; server_name _; #root /usr/share/nginx/html; root /usr/share/nginx/html/lv/public; index index.php index.html index.htm # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } } </code></pre> <p>Inside /usr/share/nginx/html/lv I have installed alaravel 5 project via git.</p> <pre><code>[root@213 lv]# ls -la total 164 drwxr-xr-x. 11 nginx nginx 4096 Jan 28 02:19 . drwxr-xr-x. 3 root root 4096 Jan 28 02:17 .. drwxrwxr-x. 15 nginx nginx 4096 Oct 21 10:44 app -rw-rw-r--. 1 nginx nginx 1635 Aug 19 08:57 artisan drwxrwxr-x. 2 nginx nginx 39 Nov 28 01:22 bootstrap -rw-rw-r--. 1 nginx nginx 1007 Aug 19 08:57 composer.json -rw-rw-r--. 1 nginx nginx 107281 Aug 19 08:57 composer.lock drwxrwxr-x. 2 nginx nginx 4096 Aug 19 08:57 config drwxrwxr-x. 4 nginx nginx 52 Aug 19 08:57 database -rw-rw-r--. 1 nginx nginx 503 Aug 19 08:57 gulpfile.js -rw-rw-r--. 1 nginx nginx 79 Aug 19 08:57 package.json -rw-rw-r--. 1 nginx nginx 87 Aug 19 08:57 phpspec.yml -rw-rw-r--. 1 nginx nginx 729 Aug 19 08:57 phpunit.xml drwxrwxr-x. 4 nginx nginx 4096 Nov 28 01:03 public -rw-rw-r--. 1 nginx nginx 1724 Aug 19 08:57 drwxrwxr-x. 5 nginx nginx 42 Aug 19 08:57 resources -rw-rw-r--. 1 nginx nginx 561 Aug 19 08:57 server.php drwxrwxrwx. 6 nginx nginx 76 Aug 19 08:57 storage drwxrwxr-x. 2 nginx nginx 47 Aug 19 08:57 tests drwxrwxr-x. 29 nginx nginx 4096 Aug 19 08:57 vendor [root@213 lv]# cd storage [root@213 storage]# ls -la total 12 drwxrwxr-x. 6 nginx nginx 76 Aug 19 08:57 . drwxr-xr-x. 11 nginx nginx 4096 Jan 28 02:19 .. drwxrwxr-x. 2 nginx nginx 23 Aug 19 08:57 app drwxrwxr-x. 3 nginx nginx 21 Aug 19 08:57 documents drwxrwxr-x. 5 nginx nginx 62 Aug 19 08:57 framework -rwxrwxr-x. 1 nginx nginx 11 Aug 19 08:57 .gitignore drwxrwxrwx. 2 nginx nginx 4096 Jan 27 14:01 logs </code></pre> <p>logs is empty.</p> <p>I still get the following the error:</p> <pre><code>PHP message: PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/usr/share/nginx/html/lv/storage/logs/laravel-2016-01-28.log" could not be opened: failed to open stream: Permission denied' in /usr/share/nginx/html/lv/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:95 Stack trace: #0 /usr/share/nginx/html/lv/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler-&gt;write(Array) #1 /usr/share/nginx/html/lv/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler-&gt;write(Array) #2 /usr/share/nginx/html/lv/vendor/monolog/monolog/src/Monolog/Logger.php(269): Monolog\Handler\AbstractProcessingHandler-&gt;handle(Array) #3 /usr/share/nginx/html/lv/vendor/monolog/monolog/src/Monolog/Logger.php(545): Monolog\Logger-&gt;addRecord(400, 'exception 'Symf...', Array) #4 /usr/share/nginx/html/lv/vendor/larav </code></pre> <p>So I ran whoami.php which has `echo shell_exec('whoami');' in it, and the user is nginx.</p> <p>So I don't get the problem</p> </div>

Nginx PHP5.6权限错误

<div class="post-text" itemprop="text"> <p>I am getting the following error in my Nginx error.log file, what do I need to do to prevent this from happening?</p> <blockquote> <p>2016/06/28 09:43:37 [crit] 1631#0: *1 connect() to unix:/run/php/php5.6 fpm.sock failed (13: Permission denied) while connecting to upstream, client:, server: my-vm, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php5.6-fpm.sock:", $host: "my-vm-1"</p> </blockquote> <p>Nginx runs with www-data permissions. The permissions of the folder that the error message is referencing (<code>/run/php/php5.6-fpm.sock</code>) are as follows:</p> <pre><code>drwxr-xr-x 20 root root 700 Jun 28 09:45 run drwxr-xr-x 2 www-data www-data 80 Jun 28 09:44 php srw-rw---- 1 www-data www-data 0 Jun 28 09:44 php5.6-fpm.sock </code></pre> <p>The user/group of PHP (<code>/etc/php/5.6/fpm/pool.d/www.conf</code>) is:</p> <pre><code>user = www-data group = www-data listen.owner = www-data = www-data listen.mode = 0660 </code></pre> <p>The <code>nginx.conf</code> file does not have any <code>user</code> value set. Some people have suggested setting this to <code>www-data</code>, but if I set this the Nginx service won't start, hence why it is ommitted.</p> </div>


<div class="post-text" itemprop="text"> <p>I have nginx and hhvm installed and running as processes on a ubuntu VM. The configs are copied below. I have an index.php file in /usr/share/nginx/html (pointed to by nginx) but when I try to access the site beign served by nginx, I get the following error about hhvm:</p> <p><strong>/var/log/nginx/error.log</strong></p> <pre><code>2016/10/04 12:03:05 [crit] 12443#0: *1 connect() to unix:/var/run/hhvm/hhvm.sock failed (2: No such file or directory) while connecting to upstr eam, client:, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/hhvm/hhvm.sock:", host: "xx.xx.xx.xx" </code></pre> <p><strong>Nginx config (part of config)</strong></p> <pre><code>server { listen 80 default_server; root /usr/share/nginx/html; index index.php index.html index.htm; location / { index index.php; try_files $uri $uri/ $uri/index.php$args /index.php$args; } location /mysql { index index.php; } location ~* \.(php)$ { try_files $uri = 404; location ~ \..*/.*\.php$ {return 404;} fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_keep_conn on; fastcgi_pass unix:/var/run/hhvm/hhvm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } </code></pre> <p>I have checked - bothh nginx and hhvm processes are running. Any thoughts on how to troubleshoot this further?</p> <p>Update: I changed the server.ini file in /etc/hhvm to the following and restarted the service but it does not appear to have done the job</p> <pre><code>hhvm.server.file.socket=/var/run/hhvm/hhvm.sock </code></pre> <p>I commented out the 9000 port being used previously. </p> <p><strong>Update:</strong> After making the server.init change and restarting hhvm, I get the following error in /var/log/hhvm/error.log:</p> <pre><code>Unable to read pid file /var/run/hhvm/pid for any meaningful pid Unable to read pid file /var/run/hhvm/pid for any meaningful pid Unable to read pid file /var/run/hhvm/pid for any meaningful pid Unable to read pid file /var/run/hhvm/pid for any meaningful pid Unable to read pid file /var/run/hhvm/pid for any meaningful pid Unable to start page server Shutting down due to failure(s) to bind in HttpServer::runAndExitProcess </code></pre> <p>The /var/run/hhvm directory is owned by www-data</p> </div>

配置nginx的时候Syntax error: newline unexpected

# sudo service nginx start /etc/init.d/nginx: 2: /etc/init.d/nginx: Syntax error: newline unexpected 这是什么原因?


<div class="post-text" itemprop="text"> <p>I want to run services written in php in cluster. So I'm using docker. Here is the stack:</p> <ul> <li>php 7.2</li> <li>php-fpm</li> <li>docker</li> <li>nginx</li> <li>rabbitmq/redis/db/etc</li> </ul> <p>In local edvelopment, there is no problem to share volumes with both service and nginx, but in production this is a bad approach. When I'm trying to build image with both php-fpm AND nginx inside, php-fpm always crashes. Here are errors:</p> <pre><code>service_1_5631b886cf08 | [10-Dec-2018 21:48:42] NOTICE: [pool www] child 22 started service_1_5631b886cf08 | [10-Dec-2018 21:48:42] WARNING: [pool www] child 21 exited on signal 11 (SIGSEGV - core dumped) after 26.338965 seconds from start service_1_5631b886cf08 | [10-Dec-2018 21:48:42] NOTICE: [pool www] child 23 started </code></pre> <p>Here is Dockerfile:</p> <pre><code>FROM php:7.2-fpm-stretch ENV PHPREDIS_VERSION 4.1.1 ENV AMQP_VERSION 1.9.3 # Mcrypt #RUN apt-get install -y libmcrypt-dev &amp;&amp; docker-php-ext-install -j$(nproc) mcrypt # GD RUN apt-get update \ &amp;&amp; apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev RUN docker-php-ext-configure gd \ --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ &amp;&amp; docker-php-ext-install -j$(nproc) gd # PDO RUN docker-php-ext-install -j$(nproc) pdo &amp;&amp; \ &amp;&amp; docker-php-ext-install -j$(nproc) pdo_mysql # Postgres PDO RUN apt-get install -y libpq-dev \ &amp;&amp; docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ &amp;&amp; docker-php-ext-install pdo_pgsql # Redis RUN mkdir -p /usr/src/php/ext/redis \ &amp;&amp; curl -L$PHPREDIS_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \ &amp;&amp; echo 'redis' &gt;&gt; /usr/src/php-available-exts \ &amp;&amp; docker-php-ext-install redis # INTL RUN apt-get install -y zlib1g-dev libicu-dev g++ \ &amp;&amp; docker-php-ext-configure intl \ &amp;&amp; docker-php-ext-install intl # OPCACHE RUN docker-php-ext-install -j$(nproc) opcache # APCu RUN pecl install apcu &amp;&amp; docker-php-ext-enable apcu # zip RUN docker-php-ext-install -j$(nproc) zip # AMQP RUN apt-get install -y librabbitmq-dev \ &amp;&amp; pecl install amqp-$AMQP_VERSION \ &amp;&amp; docker-php-ext-enable amqp # Nginx RUN apt-get update \ &amp;&amp; apt-get install -y nginx \ &amp;&amp; chown -R www-data:www-data /var/lib/nginx # supervisor RUN apt install -y supervisor \ &amp;&amp; mkdir -p /var/log/supervisor \ &amp;&amp; rm -rf /var/lib/apt/lists/* # composer RUN curl -sL | php -- --install-dir /usr/bin --filename composer WORKDIR /var/www/service/service_1 ADD . /var/www/service/service_1 RUN mv nginx.conf.tmpl /etc/nginx/nginx.conf \ &amp;&amp; mv supervisord.conf /etc/supervisor/conf.d/supervisord.conf RUN composer install --no-plugins --no-scripts # php-fpm EXPOSE 9000 # nginx EXPOSE 8180 CMD ["/usr/bin/supervisord"] </code></pre> <p>Here is nginx config for service:</p> <pre><code>upstream service { server localhost:9000; } server { listen 8180; server_name localhost; root /var/www/services/service_1/public; location / { # try to serve file directly, fallback to index.php try_files $uri /index.php$is_args$args; } location ~ ^/index\.php(/|$) { fastcgi_pass service; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; internal; } # return 404 for all other php files not matching the front controller # this prevents access to other php files you don't want to be accessible. location ~ \.php$ { return 404; } # error_log /var/log/nginx/project_error.log; # access_log /var/log/nginx/project_access.log; } </code></pre> <p>And supervisord config:</p> <pre><code>[supervisord] nodaemon = true logfile = /dev/null logfile_maxbytes = 0 [program:php-fpm] command = /usr/local/sbin/php-fpm stdout_logfile = /dev/stdout stdout_logfile_maxbytes = 0 stderr_logfile = /dev/stderr stderr_logfile_maxbytes = 0 [program:nginx] command = /usr/sbin/nginx -g "daemon off;" stdout_logfile = /dev/stdout stdout_logfile_maxbytes = 0 stderr_logfile = /dev/stderr stderr_logfile_maxbytes = 0 </code></pre> <p>What should I do? The main purpose, i dpn't want to use volume with code on both nginx and php-fpm containers, so i'm trying to make them work alongside</p> </div>

Ubuntu 14.04 TLS Nginx RTMP 测试记录和提问?

参考文章: 问题描述: 1、添加nginx-rtmp-module-master时,最后一行报错 ``` root@cccsq-server:/var/www/html/nginx-rtmp/nginx-1.7.5# ./configure --prefix=/usr/local/nginx --add-module=/usr/local/nginx-rtmp-module --with-http_ssl_module --with-http_flv_module --with-http_mp4_module checking for OS + Linux 3.13.0-79-lowlatency x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4) checking for gcc -pipe switch ... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for unistd.h ... found checking for inttypes.h ... found checking for limits.h ... found checking for sys/filio.h ... not found checking for sys/param.h ... found checking for sys/mount.h ... found checking for sys/statvfs.h ... found checking for crypt.h ... found checking for Linux specific features checking for epoll ... found checking for EPOLLRDHUP ... found checking for O_PATH ... found checking for sendfile() ... found checking for sendfile64() ... found checking for sys/prctl.h ... found checking for prctl(PR_SET_DUMPABLE) ... found checking for sched_setaffinity() ... found checking for crypt_r() ... found checking for sys/vfs.h ... found checking for nobody group ... not found checking for nogroup group ... found checking for poll() ... found checking for /dev/poll ... not found checking for kqueue ... not found checking for crypt() ... not found checking for crypt() in libcrypt ... found checking for F_READAHEAD ... not found checking for posix_fadvise() ... found checking for O_DIRECT ... found checking for F_NOCACHE ... not found checking for directio() ... not found checking for statfs() ... found checking for statvfs() ... found checking for dlopen() ... not found checking for dlopen() in libdl ... found checking for sched_yield() ... found checking for SO_SETFIB ... not found checking for SO_ACCEPTFILTER ... not found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... found checking for TCP_INFO ... found checking for accept4() ... found checking for int size ... 4 bytes checking for long size ... 8 bytes checking for long long size ... 8 bytes checking for void * size ... 8 bytes checking for uint64_t ... found checking for sig_atomic_t ... found checking for sig_atomic_t size ... 4 bytes checking for socklen_t ... found checking for in_addr_t ... found checking for in_port_t ... found checking for rlim_t ... found checking for uintptr_t ... uintptr_t found checking for system byte ordering ... little endian checking for size_t size ... 8 bytes checking for off_t size ... 8 bytes checking for time_t size ... 8 bytes checking for setproctitle() ... not found checking for pread() ... found checking for pwrite() ... found checking for sys_nerr ... found checking for localtime_r() ... found checking for posix_memalign() ... found checking for memalign() ... found checking for mmap(MAP_ANON|MAP_SHARED) ... found checking for mmap("/dev/zero", MAP_SHARED) ... found checking for System V shared memory ... found checking for POSIX semaphores ... not found checking for POSIX semaphores in libpthread ... found checking for struct msghdr.msg_control ... found checking for ioctl(FIONBIO) ... found checking for struct tm.tm_gmtoff ... found checking for struct dirent.d_namlen ... not found checking for struct dirent.d_type ... found checking for sysconf(_SC_NPROCESSORS_ONLN) ... found checking for openat(), fstatat() ... found checking for getaddrinfo() ... found configuring additional modules adding module in /usr/local/nginx-rtmp-module **./configure: error: no /usr/local/nginx-rtmp-module/config was found** ``` 意思好像说,没有找到这个config 文件,这个路径下面本来就没有这个文件啊,之前没有加载这么多模块的时候,也没有报错。 在末尾添加如下 配置 rtmp {     server {             listen 1935;             chunk_size 4096;             application live {                     live on;                     record off; hls on;   hls_path /usr/share/nginx/html/hls;   hls_fragment 2s;                     exec ffmpeg -i rtmp://localhost/live/$name -threads 1 -c:v libx264 -profile:v baseline -b:v 350K -s 640x360 -f flv -c:a aac -ac 1 -strict -2 -b:a 56k rtmp://localhost/live360p/$name;             }             application live360p {               #该挂载点为360p的压缩画面                     live on;                     record off;         } application hls360p {     #个人测试,单独开放的rtmp+hls360p挂载点和hls2挂载点的360p hls流                 live on;                   hls on;                   hls_path /usr/share/nginx/html/hls2;   hls_fragment 2s;             }       } } 在末尾添加这个,启动ng报错,第108或者109或者110行, 那一行的指令是 server { } ,不知道什么情况。 root@cccsq-server:/var/www/html/nginx-rtmp/nginx-1.7.5# service nginx start * Starting Nginx Server... nginx: [emerg] unknown directive " " in /usr/local/nginx/conf/nginx.conf:119

ArcGis Engine10.1发布地图服务到Arcgis Server,出现了错误,如下

服务成功发布到了Server上,但是无法启动服务,求助大牛。。。 代码如下: string serverName = "http://localhost:6080/arcgis/admin"; string mxdFilePath = @"D:\southGis\Data\xyz.mxd"; string serviceName = "tiles02223"; string username = "gis123"; string password = "gis123"; //发布地图服务 public void PublishMapServer(string strServerName, string strMxdPath, string strServiceName, string username, string password) { IServerObjectAdmin pServerObjectAdmin = ConnectAGS(strServerName, username, password); IServerObjectConfiguration5 configuration = (IServerObjectConfiguration5)pServerObjectAdmin.CreateConfiguration(); configuration.Name = strServiceName;//发布Service的名称,必填 configuration.TypeName = "MapServer";//发布服务的类型,如:MapServer,GeocodeServer configuration.TargetCluster = "default"; configuration.StartupType = esriStartupType.esriSTAutomatic; configuration.IsolationLevel = esriServerIsolationLevel.esriServerIsolationHigh; configuration.IsPooled = true;//是否池化 configuration.Description = "tiles000000000001"; configuration.MaxInstances = 2;//最多的实例数 configuration.MinInstances = 1;//最少的实例数 configuration.WaitTimeout = 60; configuration.UsageTimeout = 600; configuration.IdleTimeout = 1800; //customize recycle properties IPropertySet propertySet_Recycle = configuration.RecycleProperties; propertySet_Recycle.SetProperty("StartTime", "00:00"); propertySet_Recycle.SetProperty("Interval", "24"); //设置SOC属性 IPropertySet pPropertySet = configuration.Properties; pPropertySet.SetProperty("FilePath", strMxdPath);//MXD路径 pPropertySet.SetProperty("MaxRecordCount", "1000"); pPropertySet.SetProperty("SupportedImageReturnTypes", "MIME + URL");//支持的图片类型 IEnumServerDirectory dirs = pServerObjectAdmin.GetServerDirectories(); dirs.Reset(); IServerDirectory serverDir = dirs.Next(); while (serverDir != null) { if (((IServerDirectory2)serverDir).Type == esriServerDirectoryType.esriSDTypeOutput) { pPropertySet.SetProperty("OutputDir", serverDir.Path); //输出目录 pPropertySet.SetProperty("VirtualOutputDir", serverDir.URL); //输出虚拟目录 break; } serverDir = dirs.Next(); } IPropertySet info = configuration.Info; info.SetProperty("WebEnabled", "true"); info.SetProperty("WebCapabilities", "Map,Query,Data"); //添加服务到Server pServerObjectAdmin.AddConfiguration(configuration); //启动服务 pServerObjectAdmin.StartConfiguration(strServiceName, "MapServer"); } 代码执行到pServerObjectAdmin.AddConfiguration(configuration);时报错了,错误信息是 ERROR: service failed to start, Cannot connect to this server.

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 =' /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('', '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 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>

centos 7 重启network service 一直失败,开机启动服务已设置

[root@localhost test1]# systemctl status network.service ● network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: failed (Result: exit-code) since 五 2017-03-31 18:54:16 CST; 9s ago Docs: man:systemd-sysv-generator(8) Process: 5929 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE) 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master systemd[1]: network.service: control process exited, code...s=1 3月 31 18:54:16 master systemd[1]: Failed to start LSB: Bring up/down networking. 3月 31 18:54:16 master systemd[1]: Unit network.service entered failed state. 3月 31 18:54:16 master systemd[1]: network.service failed. Hint: Some lines were ellipsized, use -l to show in full.

nginx无法识别css和图像:资源被解释为样式表,但使用MIME类型text / html进行传输

<div class="post-text" itemprop="text"> <p>我试图在子目录中运行Rainloop,<a href="http://babylon/webmail" rel="nofollow noreferrer">http://babylon/webmail</a>,得到的CSS和js是不被识别的。例如:</p> <pre><code>Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://babylon/webmail/rainloop/v/". </code></pre> <p>我尝试了一些可能(但没有奏效)的解决方案:</p> <ol> <li>1、在nginx.conf.中加入"include /etc/nginx/mime.types;"</li> <li><p>2、有人说,php的位置错了,我应该添加fastcgi_split_path_info ^(.+.php)(/.+)$; #this line,但并没有什么用。</p> <ol start="3"> <li>3、我添加了新的CSS和javascript的根,但也没有任何变化。</li> </ol> <p>我的配置:</p> <pre><code>location ^~ /webmail { root /srv/rainloop/public_html; try_files $uri $uri/ /webmail/index.php?$query_string; access_log /srv/rainloop/logs/access.log; error_log /srv/rainloop/logs/error.log; index index.php; access_log /var/log/nginx/scripts.log scripts; location ~ \.php$ { #if (!-f $request_filename) { return 404; } include fastcgi_params; #fastcgi_split_path_info ^(.+\.php)(/.+)$; #this line fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /srv/rainloop/public_html/index.php; } location ~ /\.ht { deny all; } location ^~ /webmail/data { deny all; } } </code></pre> </div>


今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...





String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

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

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


文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

将一个接口响应时间从2s优化到 200ms以内的一个案例

一、背景 在开发联调阶段发现一个接口的响应时间特别长,经常超时,囧… 本文讲讲是如何定位到性能瓶颈以及修改的思路,将该接口从 2 s 左右优化到 200ms 以内 。 二、步骤 2.1 定位 定位性能瓶颈有两个思路,一个是通过工具去监控,一个是通过经验去猜想。 2.1.1 工具监控 就工具而言,推荐使用 arthas ,用到的是 trace 命令 具体安装步骤很简单,大家自行研究。 我的使用步骤是...


微信上收到一位读者小涛的留言,大致的意思是自己只有高中学历,经过培训后找到了一份工作,但很难胜任,考虑要不要辞职找一份他能力可以胜任的实习工作。下面是他留言的一部分内容: 二哥,我是 2016 年高中毕业的,考上了大学但没去成,主要是因为当时家里经济条件不太允许。 打工了三年后想学一门技术,就去培训了。培训的学校比较垃圾,现在非常后悔没去正规一点的机构培训。 去年 11 月份来北京找到了一份工...


JVM内存结构和Java内存模型都是面试的热点问题,名字看感觉都差不多,网上有些博客也都把这两个概念混着用,实际上他们之间差别还是挺大的。 通俗点说,JVM内存结构是与JVM的内部存储结构相关,而Java内存模型是与多线程编程相关,本文针对这两个总是被混用的概念展开讲解。 JVM内存结构 JVM构成 说到JVM内存结构,就不会只是说内存结构的5个分区,而是会延展到整个JVM相关的问题,所以先了解下

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Google 与微软的浏览器之争

浏览器再现“神仙打架”。整理 | 屠敏头图 | CSDN 下载自东方 IC出品 | CSDN(ID:CSDNnews)从 IE 到 Chrome,再从 Chrome 到 Edge,微软与...


loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...








蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?



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






私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...






本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...




当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...


HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...