#眉標=中小企業專區 #副標=用免費軟體建置IT環境(3) #大標=網頁伺服器的完美組合LAMP(下) #作者=文/圖 Sylar -----程式碼----- # yum search opennms <== 搜尋opennms套件 Loaded plugins: refresh-packagekit Warning: No matches found for: opennms No Matches found <= 回應找不到 # wget ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/o/project/op/opennms/OldFiles/opennms-1.6/opennms-webapp-standalone-1.6.2-1.noarch.rpm <== 利用wget指令,將檔案抓回來 … # rpm -Uvh opennms-webapp-standalone-1.6.2-1.noarch.rpm <== 以rpm程式安裝套件 警告:opennms-webapp-standalone-1.6.2-1.noarch.rpm: 表頭 V3 DSA signature: NOKEY, key ID 4c4cbbd9 錯誤:相依性偵測失敗: opennms-core = 1.6.2-1 被 opennms-webapp-standalone-1.6.2-1.noarch 所需要 -----end----- -----程式碼----- # yum install mysql-server mysql-gui-tools Loaded plugins: refresh-packagekit Setting up Install Process Resolving Dependencies ... Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mysql-gui-tools x86_64 5.0r12-11.fc11 fedora 12 k mysql-server x86_64 5.1.47-1.fc11 updates 11 M Installing for dependencies: mysql-administrator x86_64 5.0r12-11.fc11 fedora 1.7 M mysql-gui-common x86_64 5.0r12-11.fc11 fedora 221 k mysql-query-browser x86_64 5.0r12-11.fc11 fedora 1.5 M Transaction Summary ================================================================================ Install 5 Package(s) Upgrade 0 Package(s) Total download size: 14 M Is this ok [y/N]: <略> -----end----- -----程式碼----- # vi /etc/hosts.allow ALL: 192.168.1.0/255.255.255.0 sshd: 192.168.0.10 -----end----- -----程式碼----- # vi /etc/sysconfig/iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT # /etc/init.d/iptables restart -----end----- -----程式碼----- # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive <= 當下selinux的模式 Mode from config file: permissive Policy version: 21 Policy from config file: targeted -----end----- -----程式碼----- # chkconfig --list <= 列出所有服務 NetworkManager 0:關閉 1:關閉 2:關閉 3:關閉 4:關閉 5:關閉 6:關閉 acpid 0:關閉 1:關閉 2:開啟 3:開啟 4:開啟 5:開啟 6:關閉 … # export LANG=C # chkconfig --list | grep 3:on acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off <略> # chkconfig mysqld --level 3 off -----end-----