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