[Help] Web không hiển thị mã kiểm tra trên ubuntu

bạn gõ lệnh
Mã:
vi /etc/resolv.conf
xem thử nội dung bên trong đó có tương tự như thế này không
Mã:
nameserver 8.8.8.8
nameserver 8.8.4.4
nó để vẩy # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 14.0.17.8
nameserver 8.8.8.8
~
 

DMGM

nó để vẩy # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 14.0.17.8
nameserver 8.8.8.8
~
Bạn chuyển dòng
Mã:
nameserver 14.0.17.8
nameserver 8.8.8.8
thành
Mã:
nameserver 8.8.8.8
nameserver 8.8.4.4
thử xem nó có chạy được không
 
Bạn chuyển dòng
Mã:
nameserver 14.0.17.8
nameserver 8.8.8.8
thành
Mã:
nameserver 8.8.8.8
nameserver 8.8.4.4
thử xem nó có chạy được không
vẫn không được sao nó khó khăn quá ,mà vps nó phải kết nối đươc chứ ta
 

DMGM

bạn reboot vps rồi thử lại lệnh này xem nó hoạt động không. mình chưa biết cách cài offline thư viện này
Mã:
apt-get update
 
bạn reboot vps rồi thử lại lệnh này xem nó hoạt động không. mình chưa biết cách cài offline thư viện này
Mã:
apt-get update
mình tìm trên google nó để trang này github.com/libgd/libgd/releases không biết phải ko
 

DMGM

security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.10-1ubuntu3.20_amd64.deb
bạn tải file này về rồi upload lên vps, sau đó dùng lệnh sau để cài đặt.
Mã:
[COLOR=#111111][FONT=Consolas]dpkg -i [/FONT][/COLOR]php5-gd_5.3.10-1ubuntu3.20_amd64.deb
chúc bạn may mắn :3
 
nó báo lỗi
(Reading database ... 87188 files and directories currently installed.)
Preparing to unpack php5-gd_5.5.9+dfsg-1ubuntu4.13_i386.deb ...
Unpacking php5-gd (5.5.9+dfsg-1ubuntu4.13) over (5.5.9+dfsg-1ubuntu4.13) ...
dpkg: dependency problems prevent configuration of php5-gd:
php5-gd depends on libgd3 (>= 2.1.0~alpha~); however:
Package libgd3 is not installed.
php5-gd depends on libxpm4; however:
Package libxpm4 is not installed.


dpkg: error processing package php5-gd (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-gd
 

DMGM

bạn chạy lệnh
Mã:
[COLOR=#111111][FONT=Consolas]host -v archive.ubuntu.com[/FONT][/COLOR]
rồi copy lỗi lên mình xem thử
 
bạn chạy lệnh
Mã:
[COLOR=#111111][FONT=Consolas]host -v archive.ubuntu.com[/FONT][/COLOR]
rồi copy lỗi lên mình xem thử
root@dc24:/home# host -v archive.ubuntu.com
Trying "archive.ubuntu.com"
;; connection timed out; no servers could be reached
 

DMGM

bạn ping thử vnexpress.net và google.com rồi show cho mình xem với. có thể vps của bạn config mạng bị lỗi rồi
 
không ping được cái nào luôn :)
root@dc24:~# ping vnexpress.net
ping: unknown host vnexpress.net
root@dc24:~# ping google.com
ping: unknown host google.com
 

DMGM

bạn liên hệ với bên cung cấp vps để nói họ fix giùm kết nối mạng của vps
 
Ping được google rồi
root@dc24:~# ping google.com
PING google.com (183.91.18.50) 56(84) bytes of data.
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=1 ttl=61 time=0.296 ms
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=2 ttl=61 time=0.391 ms
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=3 ttl=61 time=0.382 ms
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=4 ttl=61 time=0.360 ms
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=5 ttl=61 time=0.453 ms
64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=6 ttl=61 time=0.370 ms
lệnh
host -v archive.ubuntu.com
Trying "archive.ubuntu.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8309
;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 13, ADDITIONAL: 6


;; QUESTION SECTION:
;archive.ubuntu.com. IN A


;; ANSWER SECTION:
archive.ubuntu.com. 60 IN A 91.189.91.13
archive.ubuntu.com. 60 IN A 91.189.88.153
archive.ubuntu.com. 60 IN A 91.189.88.149
archive.ubuntu.com. 60 IN A 91.189.91.24
archive.ubuntu.com. 60 IN A 91.189.91.23
archive.ubuntu.com. 60 IN A 91.189.91.14
archive.ubuntu.com. 60 IN A 91.189.91.15
archive.ubuntu.com. 60 IN A 91.189.92.201
archive.ubuntu.com. 60 IN A 91.189.92.200


;; AUTHORITY SECTION:
com. 35155 IN NS i.gtld-servers.net.
com. 35155 IN NS g.gtld-servers.net.
com. 35155 IN NS m.gtld-servers.net.
com. 35155 IN NS e.gtld-servers.net.
com. 35155 IN NS f.gtld-servers.net.
com. 35155 IN NS h.gtld-servers.net.
com. 35155 IN NS l.gtld-servers.net.
com. 35155 IN NS d.gtld-servers.net.
com. 35155 IN NS j.gtld-servers.net.
com. 35155 IN NS b.gtld-servers.net.
com. 35155 IN NS k.gtld-servers.net.
com. 35155 IN NS c.gtld-servers.net.
com. 35155 IN NS a.gtld-servers.net.
chạy lênh
sudo apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


apt-get update
cũng ko được luôn
 

DMGM

Mã:
[COLOR=#000000][FONT=Arial]root@dc24:~# ping google.com[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]PING google.com (183.91.18.50) 56(84) bytes of data.[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=1 ttl=61 time=0.296 ms[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=2 ttl=61 time=0.391 ms[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=3 ttl=61 time=0.382 ms[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=4 ttl=61 time=0.360 ms[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=5 ttl=61 time=0.453 ms[/FONT][/COLOR]
[COLOR=#000000][FONT=Arial]64 bytes from static.cmcti.vn (183.91.18.50): icmp_seq=6 ttl=61 time=0.370 ms[/FONT][/COLOR]
ping google của bạn trả về là của nhà mạng cmc chứ không phải của google.
bạn ping 8.8.8.8 thử xem được không?
 

Thống kê

Chủ đề
100,756
Bài viết
467,591
Thành viên
339,853
Thành viên mới nhất
THPT Lí Thường Kiệt
Top