Centos7啟動Nginx報錯。
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/nginx/conf/nginx.conf:118
[root@localhost sbin]# vim /usr/local/nginx/conf/nginx.conf
[root@localhost sbin]# ./nginx -s reload
nginx: [emerg] directive "index" is not terminated by ";" in /usr/local/nginx/conf/vhost/www.baidu.com.conf:7
[root@localhost sbin]# vim /usr/local/nginx/conf/vhost/www.baidu.com.conf
[root@localhost sbin]# systemctl start tomcat
[root@localhost sbin]# ./nginx -s reload
nginx: [emerg] directive "index" is not terminated by ";" in /usr/local/nginx/conf/vhost/www.baidu.com.conf:7
[root@localhost sbin]# vim /usr/local/nginx/conf/vhost/www.baidu.com.conf
基本上是一些”{ } ;”符號漏了或者多寫了,vim命令定位到報錯的行,修改即可,中途誤改按u恢復,centos7在你修改後啟動不了的情況下做了備份,重新編輯,會提示恢復,輸入命令:r 恢復繼續編輯。
相關文章
- nginx 啟動報錯 unknown directive "server"NginxServer
- CentOS7 nginx啟動指令碼CentOSNginx指令碼
- Nginx啟動不了報錯未找到命令的解決方法(- bash: nginx: 未找到命令)Nginx
- myeclipse啟動報錯Eclipse
- Homestead 啟動 elasticsearch 報錯Elasticsearch
- 本地nacos啟動報錯
- Mac 上啟動 appium 報錯MacAPP
- apache啟動報錯:httpd: aprApachehttpd
- 解決啟動openfeign報錯
- laravel sail 首次啟動報錯LaravelAI
- Centos7 網路報錯CentOS
- Redis 啟動報錯Address already in useRedis
- Xcode啟動RN報錯"`fsevents` unavailable"XCodeAI
- mongodb啟動報錯怎麼辦MongoDB
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- zabbix-server啟動報錯解決Server
- sshd啟動報錯Could not load host key
- 測試類啟動報錯缺失servletWebServerApplicationContextServletWebServerAPPContext
- nginx啟動,停止命令Nginx
- nginx部署(13:Permission denied)報錯Nginx
- windows 中nginx奇葩報錯 nginx: [emerg] unknown directive "#" in nginx/conf/nginx.conf:3WindowsNginx
- keepalived啟動報錯解決一例
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- 解決 Rust WebAssembly 啟動 Web 程式報錯RustWeb
- 使用root使用者啟動hadoop報錯Hadoop
- Flink啟動Yarn session模式的部署報錯YarnSession模式
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- Centos7 啟動 python指令碼CentOSPython指令碼
- CentOS7環境下RabbitMQ管理外掛rabbitmq_management啟動報錯{:query, :rabbit@rabbit1, {:badrpc, :timeout}}CentOSMQRPC
- RHEL7/CentOS7虛擬機器異常關閉導致vmware tool啟動指令碼報錯CentOS虛擬機指令碼
- Feign整合Sentinel 開啟 feign.sentinel.enabled=true 啟動報錯
- centos下nginx啟動、重啟、關閉CentOSNginx
- 11.2.0.1.0 RAC啟動使用root使用者啟動crs報錯CRS-4535
- CentOS7 安裝NginxCentOSNginx
- centos7安裝nginxCentOSNginx
- Centos7 安裝 NginxCentOSNginx
- tomcat-啟動報錯Multiple Contexts have a path of "/xxxx"TomcatContext
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP