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指令碼
- mongodb 啟動報錯MongoDB
- php啟動報錯PHP
- Nginx啟動不了報錯未找到命令的解決方法(- bash: nginx: 未找到命令)Nginx
- myeclipse啟動報錯Eclipse
- 本地nacos啟動報錯
- Homestead 啟動 elasticsearch 報錯Elasticsearch
- apache啟動報錯:httpd: aprApachehttpd
- laravel sail 首次啟動報錯LaravelAI
- sqlplus 啟動報錯SQL
- 啟動ASM 例項報錯ASM
- Centos7 網路報錯CentOS
- nginx安裝報錯Nginx
- Mac 上啟動 appium 報錯MacAPP
- mongodb啟動報錯怎麼辦MongoDB
- Apache Hive啟動報NoClassDefFoundError錯誤ApacheHiveError
- nginx + php (zabbix)報錯分析NginxPHP
- zabbix-server啟動報錯解決Server
- mysql安裝/啟動報錯彙總MySql
- springboot專案啟動報錯Spring Boot
- DBCA啟動報錯Java.Lang.NoclassdeffounderrorJavaError
- centos7重啟apache、nginx、mysql、php-fpm命令CentOSApacheNginxMySqlPHP
- nginx啟動,停止命令Nginx
- nginx開機啟動Nginx
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- Xcode啟動RN報錯"`fsevents` unavailable"XCodeAI
- JDeveloper啟動時老是報錯-解決方法Developer
- EBS服務啟動報錯基本處理
- MySQL 啟動服務報錯解決方案MySql
- 解決 Rust WebAssembly 啟動 Web 程式報錯RustWeb
- nginx部署(13:Permission denied)報錯Nginx
- VMWARE啟動虛機報錯無法開啟檔案
- nginx啟動,重啟,關閉命令Nginx
- RHEL7/CentOS7虛擬機器異常關閉導致vmware tool啟動指令碼報錯CentOS虛擬機指令碼
- Nginx的啟動過程Nginx
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- Redis 啟動報錯Address already in useRedis