時間:2023-08-09 09:48:02 | 來源:網(wǎng)站運營
時間:2023-08-09 09:48:02 來源:網(wǎng)站運營
使用CentOS+LAMP建站:[root@earth ~]# cat /etc/issueCentOS release 6.9 (Final)Kernel /r on an /m
可以看到我們使用的Linux版本為CentOS的6.9版本。OK[root@earth ~]# getconf LONG_BIT64
可以看到我們的操作系統(tǒng)是64位的,個人比較喜歡使用file命令:[root@earth ~]# file /bin/ls/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
使用file命令查看Linux中常用的ls命令,可以看到這個ls命令是64位的。從而判斷我們的系統(tǒng)是64位的。OK。[root@earth ~]# ifconfigeth0 Link encap:Ethernet HWaddr **:**:**:**:**:** inet addr:xxx.xxx.0.250 Bcast:xxx.xxx.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:feb3:8021/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1191809747 errors:0 dropped:0 overruns:0 frame:0 TX packets:862916 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:87826561372 (81.7 GiB) TX bytes:75322816 (71.8 MiB)lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2080 errors:0 dropped:0 overruns:0 frame:0 TX packets:2080 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:90244 (88.1 KiB) TX bytes:90244 (88.1 KiB)
那么,這里可以看到我的eth0是處于工作狀態(tài)的,使用的是IPv4協(xié)議,可以看到IPv4的一個私網(wǎng)地址。OK[root@earth ~]# find / -name httpd/usr/lib64/httpd/usr/sbin/httpd/etc/logrotate.d/httpd/etc/rc.d/init.d/httpd/etc/sysconfig/httpd/etc/httpd/var/lock/subsys/httpd/var/run/httpd/var/log/httpd
我們查找了一下httpd,發(fā)現(xiàn)這臺Linux應(yīng)該是安裝了httpd這個軟件的。[root@earth sbin]# ps -ef | grep httpdroot 2315 1 0 Jun04 ? 00:05:28 /usr/sbin/httpdapache 12701 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12702 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12703 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12704 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12705 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12706 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12707 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdapache 12708 2315 0 Nov12 ? 00:00:00 /usr/sbin/httpdroot 31674 31414 0 00:05 pts/0 00:00:00 grep httpd
應(yīng)該是在運行的。開啟: service iptables start 關(guān)閉: service iptables stop
這兩個命令是即時生效的。關(guān)鍵詞:使用
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。