ข้ามไปที่เนื้อหาหลัก

eth0 ไม่ทำงาน

หลังจาก ghost Ubuntu Web Server แล้ว
ปัญหาหนึ่งที่เจอคือ network ไม่ยอมรีสตาร์ท
วิธีที่ใช้เดิมจะต้องไปเปลี่ยน eth0 เป็น eth1 ใน
$ sudo nano /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto
eth0
iface eth0 inet static
address 192.168.xx.xxx
netmask 255.255.255.0
gateway 192.168.xx.xxx
--> เปลี่ยนเป็น
auto eth1
iface eth1 inet static

แต่ตอนนี้ไม่ต้องแล้ว ใช้วิธีดังนี้
ให้ลบหรือเปลี่ยนชื่อเพื่อแบ็คอัพไฟล์ /etc/udev/rules.d/70-persistent-net.rules ก่อน


$ sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.org
จากนั้นรีบู๊ต
$ sudo reboot
น่าจะใช้ได้เป็นปกติ


ลิงค์ที่น่าสนใจ

http://ubuntuforums.org/showthread.php?t=1540959
https://help.ubuntu.com/community/VirtualBox/Networking
http://mylinuxramblings.wordpress.com/2010/06/03/installing-virtualbox-guest-additions-on-ubuntu-server-10-04/
http://blog.brettalton.com/2010/04/28/installing-guest-additions-in-virtualbox-for-an-ubuntu-server-guest/


ขอบคุณที่ติ่งครับ...

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

วิธีแก้ปัญหา putty เป็นภาษาต่างดาวหรือเครื่องหมาย ???

ทำงานบน OS: CentOS-7-x86_64-Minimal-1511 ทดสอบบนแพกเกจ vsftpd แก้ไขไฟล์ .bashrc # vim .bashrc กดปุ่ม Insert เพื่อแก้ไข เลื่อนเคอเซอร์ลงบรรทัดล่างสุด พิมพ์ export LANG=th_TH ลงไปบรรทัดล่าง แล้วเซฟออกมา :wq! ------------------------------------------------------------ # .bashrc # User specific aliases and functions alias rm =' rm -i' alias cp =' cp -i' alias mv =' mv -i' # Source global definitions if [ -f /etc/bashrc ] ; then         . /etc/bashrc fi export LANG= th_TH ------------------------------------------------------------ แล้วไปกำหนดที่ putty ที่ Settings... ตรง Appearance เป็นฟอนต์ Fixedsys, 10-point ตรง Translation เป็น Use font encoding เสร็จแล้ว Save > Apply ออกมา การแสดงผลฝั่ง putty การแสดงผลฝั่ง FileZilla การแสดงผลฝั่ง WinSCP แต่ยังแก้ปัญหาใน บราวเซอร์และ windows ไม่ได้ ...หาต่อไป ถ้าได้จะมาบันทึกไว้ครับ

แก้ปัญหา Directory Index เป็นภาษาต่างดาว

เวลาเรียกดูไดเรคทอรี่งานที่เราเก็บไว้ ตามลิงค์ที่เราทำ แล้วมันเป็นภาษาต่างดาว เราจะแก้ไขดังนี้ เข้าไปแก้ไขไฟล์ httpd.conf # vim /etc/httpd/conf/httpd.conf # First, we configure the "default" to be a very restrictive set of # features. # <Directory   / >     Options FollowSymLinks     AllowOverride None # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # <Directory   "/var/www/html" > # # Possible values for the Options directive are "None", "All", # or any combination of: #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # ...

ประวัติต้นแดง

ชื่อพื้นเมือง ต้นแดง เป็นพืชจำพวกต้น ชื่อวิทยาศาสตร์ Xylia xylocarpa (Roxb.) Taub. var. kerrii (Craib & Hutch) I.C. Nielsen ชื่อวงศ์ Leguminosae – Mimosoideae ชื่อทางการค้า Iron wood, Jamba, Pyinkdo, Irul ชื่อพื้นเมือง สะกรอม ตะกร้อม กร้อม ชื่ออื่นๆ จาลาน (แม่ฮ่องสอน), สะกรอม (เขมร), ปราน, ไปรน์ (ส่วย), เพ้ย (ตาก), กร้วม (โคราช), คว้าย (กะเหรี่ยง), พ้าน (ละว้า), ตะกร้อม (จันทบุรี) ลักษณะทั่วไป เป็นไม้ยืนต้นขนาดกลางถึงขนาดใหญ่ ผลัดใบสูง 15-25 เมตร ลำต้นค่อนข้างเปลาตรงหรือเป็นปุ่มปม ในสภาพที่ดินตื้นไม่เหมาะสมกับการเจริญเติบโต ลำต้นจะเล็กและคดงอ จะแตกกิ่งต่ำมีพุ่มใบมาก เปลือกสีเทาอมแดง ตกสะเก็ดออกเป็นแผ่นบางๆ รอบลำต้น เปลือกในสีน้ำตาลแดง เมื่อสับเปลือกทิ้งไว้จะได้ชันสีแดง รูปทรง (เรือนยอด) เรือนยอดเป็นพุ่มกว้างไม่ค่อยเป็นระเบียบ ใบ เป็นช่อแบบขนนกสองชั้น ติดเรียงสลับยาว 10-30 ซม. ช่อหนึ่งๆ มีช่อแขนงที่ออกจากปลายก้านช่อใหญ่ สองช่อ ระหว่างง่ามช่อแขนงจะมีตุ่ม สีน้ำตาลแดงหรือสีชมพูปรากฎอยู่ ดอก มีขนาดเล็ก ออกรวมกับเป็นช่อที่ไม่แยกแขนง รูปทรงกลมคล้ายดอกกระถินกลีบดอกมี 5 กล...