<   centos常用指令   >

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

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

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

詳解: