Linux顯示檢查設置文件中的語法是否正確
~~~
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ apachectl [conflgtest]
程序“apachectl”尚未安裝。 您可以使用以下命令安裝:
sudo apt-get install apache2
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ sudo apt-get install apache2
[sudo] password for youhaidong:
E: dpkg 被中斷,您必須手工運行 sudo dpkg --configure -a 解決此問題。
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ sudo dpkg --configure -a
正在設置 update-notifier-common (0.154.1ubuntu1) ...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/courie32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/georgi32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/impact32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/times32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/trebuc32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/verdan32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/webdin32.exe
user did not accept the license
The fonts are NOT installed.
Please run 'dpkg-reconfigure ttf-mscorefonts-installer' to perform the installation again
正在設置 ttf-mscorefonts-installer (3.4+nmu1ubuntu1) ...
user did not accept the mscorefonts-eula license
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ apachectl [conflgtest]
程序“apachectl”尚未安裝。 您可以使用以下命令安裝:
sudo apt-get install apache2
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ sudo apt-get install apache2
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關系樹
正在讀取狀態信息... 完成
將會安裝下列額外的軟件包:
apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap
建議安裝的軟件包:
apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils
下列【新】軟件包將被安裝:
apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap
升級了 0 個軟件包,新安裝了 7 個軟件包,要卸載 0 個軟件包,有 6 個軟件包未被升級。
需要下載 1,267 kB 的軟件包。
解壓縮后會消耗掉 5,238 kB 的額外空間。
您希望繼續執行嗎? [Y/n] Y
獲取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libapr1 amd64 1.5.0-1 [85.1 kB]
獲取:2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1 amd64 1.5.3-1 [76.4 kB]
獲取:3 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1-dbd-sqlite3 amd64 1.5.3-1 [10.5 kB]
獲取:4 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1-ldap amd64 1.5.3-1 [8,634 B]
獲取:5 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-bin amd64 2.4.7-1ubuntu4.1 [839 kB]
獲取:6 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-data all 2.4.7-1ubuntu4.1 [160 kB]
獲取:7 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2 amd64 2.4.7-1ubuntu4.1 [87.5 kB]
下載 1,267 kB,耗時 4秒 (283 kB/s)
Selecting previously unselected package libapr1:amd64.
(正在讀取數據庫 ... 系統當前共安裝有 198114 個文件和目錄。)
Preparing to unpack .../libapr1_1.5.0-1_amd64.deb ...
Unpacking libapr1:amd64 (1.5.0-1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.5.3-1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.3-1) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.3-1_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../libaprutil1-ldap_1.5.3-1_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.3-1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../apache2-bin_2.4.7-1ubuntu4.1_amd64.deb ...
Unpacking apache2-bin (2.4.7-1ubuntu4.1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.7-1ubuntu4.1_all.deb ...
Unpacking apache2-data (2.4.7-1ubuntu4.1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.7-1ubuntu4.1_amd64.deb ...
Unpacking apache2 (2.4.7-1ubuntu4.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
正在設置 libapr1:amd64 (1.5.0-1) ...
正在設置 libaprutil1:amd64 (1.5.3-1) ...
正在設置 libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ...
正在設置 libaprutil1-ldap:amd64 (1.5.3-1) ...
正在設置 apache2-bin (2.4.7-1ubuntu4.1) ...
正在設置 apache2-data (2.4.7-1ubuntu4.1) ...
正在設置 apache2 (2.4.7-1ubuntu4.1) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
* Starting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
*
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
youhaidong@youhaidong-ThinkPad-Edge-E545:~$ apachectl [conflgtest]
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
Action '[conflgtest]' failed.
The Apache error log may have more information.
~~~
- 前言
- ubuntu14.04 64位 安裝JDK1.7
- ubuntu14.04 64位 安裝eclipse
- ubuntu14.04 64位 安裝Tomcat
- Linux顯示系統日期
- Linux顯示2015年日歷表
- Linux顯示PCI設備
- Linux顯示USB設備
- Linux顯示機器的處理器架構
- Linux查看目錄中的文件
- Linux顯示文件和目錄的詳細資料
- Linux顯示隱藏文件
- Linux顯示已經掛載的分區列表
- Linux 顯示權限
- Linux顯示工作路徑
- Linux顯示一個二進制文件或可執行文件的完整路徑
- Linux顯示內存狀態
- Linux顯示用戶的ID
- Linux顯示目前與過去登入系統的用戶相關信息
- Linux顯示目前登入系統的用戶信息
- Linux顯示各欄位的標題信息列
- Linux顯示登入系統的帳號名稱和總人數
- Linux查看磁盤剩余空間
- Linux顯示以時間降序顯示文件
- Linux顯示按文件大小降序排列
- Linux顯示以時間生升序顯示文件
- Linux顯示按文件名降序文件
- Linux顯示只顯示目錄文件
- Linux顯示檢查設置文件中的語法是否正確
- Linux顯示服務器完整的狀態信息
- Linux顯示進程狀態
- Linux顯示更新十次后退出
- Linux顯示使用者將不能利用交談式指令來對行程
- Linux顯示cat幫助信息并退出
- Linux顯示版本信息并退出
- Linux顯示所有可更新的軟件清單命令
- Linux顯示查看您擁有的倉庫
- Linux顯示以log結尾的日志文件
- Linux顯示包含全部的文件系統
- Linux顯示inode的信息
- Linux顯示指定區塊大小為1024字節
- Linux顯示本地端的文件系統
- Linux顯示指定區塊大小為1048576字節
- Linux命令之finger
- Linux顯示用戶注冊名
- Linux顯示郵件狀態等信息
- Linux顯示登錄Shell信息
- Linux查詢一臺機器的IP地址和其對應的域名