<   centos常用指令   >

免費免註冊,彰化一整天線上測驗:http://exam.bestdaylong.com/test1694.htm

【2】( )1. 用vi指令查看那個檔案可以看到mysql的存放路徑(1)yum install phpmyadmin (2)vi /etc/init.d/mysqld (3)vi /etc/httpd/conf.d/phpmyadmin.conf (4)service httpd restart
【2】( )2. 用curl下載ftp://10.0.0.1/的a.txt使用者名稱user密碼為pwd同檔名下載指令(1)service iptables status (2)curl -u user:pwd -o ftp://10.0.0.1/a.txt (3)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (4)yum install system-config-firewall-tui
【4】( )3. 使用tar解壓縮test.tgz檔案指令(1)mkdir d1 (2)yyp (3)/ (4)tar zxvf test.tgz
【1】( )4. vi尋找字串指令(1)/ (2)n (3)ll (4)wq!
【2】( )5. 將apache重新啟動的指令(1)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (2)service httpd restart (3)yum install phpmyadmin (4)curl -u user:pwd -o ftp://10.0.0.1/a.txt
【1】( )6. 用vi修改phpmyadmin允許連線ip指令(1)vi /etc/httpd/conf.d/phpmyadmin.conf (2)service httpd restart (3)yum install phpmyadmin (4)curl -u user:pwd -o ftp://10.0.0.1/a.txt
【3】( )7. 利用yum安裝文字介面網路設定(1)/usr/local/apache/bin/apachectl start (2)tar zxvf test.tgz (3)yum install system-config-network-tui (4)/usr/local/mysql/share/mysql/mysql.server start
【3】( )8. vi尋找字串指令找到要換下一個指令(1)wq! (2)vi /etc/hosts.allow (3)n (4)ll
【1】( )9. 利用service查看目前防火牆的設定(1)service iptables status (2)yum install system-config-network-tui (3)/usr/local/mysql/share/mysql/mysql.server start (4)/usr/local/apache/bin/apachectl start
【3】( )10. vi複製同一行指令(1)n (2)ll (3)yyp (4)/
【3】( )11. 查看目前目錄檔案(有顯示檔案大小)(1)vi /etc/hosts.allow (2)vi /etc/ssh/sshd_config (3)ll (4)wq!
【2】( )12. 設定root可不可以遠端連線要用vi修改那個檔案(1)service httpd restart (2)vi /etc/ssh/sshd_config (3)vi /etc/init.d/mysqld (4)vi /etc/httpd/conf.d/phpmyadmin.conf
【2】( )13. 利用yum安裝文字介面防火牆設定(1)/usr/local/mysql/share/mysql/mysql.server start (2)yum install system-config-firewall-tui (3)service iptables status (4)yum install system-config-network-tui
【1】( )14. 修改第一張網路(eth0)設定的指令(1)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (2)yum install system-config-firewall-tui (3)service iptables status (4)yum install system-config-network-tui
【3】( )15. vi儲存檔案並立即離開指令(1)vi /etc/ssh/sshd_config (2)vi /etc/init.d/mysqld (3)wq! (4)vi /etc/hosts.allow
【4】( )16. 用vi修改限制用戶端連線IP位址(1)vi /etc/ssh/sshd_config (2)vi /etc/init.d/mysqld (3)vi /etc/httpd/conf.d/phpmyadmin.conf (4)vi /etc/hosts.allow
【4】( )17. 使用完整路徑將mysql啟動(1)/usr/local/apache/bin/apachectl start (2)tar zxvf test.tgz (3)mkdir d1 (4)/usr/local/mysql/share/mysql/mysql.server start
【1】( )18. 建立目錄d1的指令(1)mkdir d1 (2)yyp (3)/ (4)n
【4】( )19. 利用yum安裝phpmyadmin的指令(1)curl -u user:pwd -o ftp://10.0.0.1/a.txt (2)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (3)yum install system-config-firewall-tui (4)yum install phpmyadmin
【4】( )20. 使用完整路徑將apache啟動(1)tar zxvf test.tgz (2)mkdir d1 (3)yyp (4)/usr/local/apache/bin/apachectl start

解答:
001.【2】002.【2】003.【4】004.【1】005.【2】006.【1】007.【3】008.【3】009.【1】010.【3】
011.【3】012.【2】013.【2】014.【1】015.【3】016.【4】017.【4】018.【1】019.【4】020.【4】

詳解: