Linux FAQ

zhaozj2021-02-16  56

Special thanks to Netease Community Ecloud, Adungaos, small squirrel (trial period) ..... Sorry i can't Remember1.q: How to log in to Linux7.2 servers from 2000 terminal in XWindows A: Install a PUTTY, use SSH landing A : You need to find a xserver, the best is Exceed 2.Q: Under Windows, I can search for a lot of Dongdong in my LAN, I use a search engine in the campus network, but I am in Linux, With this engine, there is a HTML text of the engine. He also can't find A: Make this page of your school with the special JavaScipt effects of IE, using Netscape or Mozilla is unable to display (by E.CLOUD) 3.q : Display "Table 'MySql.host'Doesn't exist" in my MySQL /VAR/LOG /MYSQLD.LOG. How to create this table. How to write the specific statement! I just learned Mysql! A: No MySQL's initial data, run # mysql_install_db (by adungaos) 4.q: I usually use more AIM, ready to completely root qq before the end of the year, I: my aim screenname: Yecloud5.q : How do I check the load average (Load average? A: Use uPtime or W to be 6.Q: Use what command can directly view the contents of the tape drive? And what is the write and reading commands of the tape drive, it is best to detaractive. A: Man MT-ST7 .q: I want all users to write permissions to MOUNT's Windows partition, can I? How is A: chmod -r 777 The mount point A: I just tried CHMOD -R 777 / MNT / C, The system prompts to find 777 properties, 777 is not a directory! I also tried CHMOD 777 / MNT / C. There was no reaction after execution, no prompt information, / mnt / c attributes did not change! How to do? ? 8. Q: How do I go to the Sendmail configuration interface in Telnet? A: SENDMAIL has a configuration interface? 9.Q: No execution after crontab setting command, what is it? The crontab content is as follows: * / 2 * * * Echo "haha" A: /etc/cron.allow file plus the username you want to run crontab A: Echo "Haha" with full circuit, and this command It is indeed possible to see it, change a 10.Q: I want to use iptables to be a firewall. Excuse me, where is this file, where to edit, how to edit, use what order, make a high-end finger, it is best to detail a little more : Use the iptables command directly, there are many related articles on the Internet www.linuxbyte.netq: Thank you, then, then, if you are saving, go / etc / sysconfig / iptables ???? A: iptables has an option You can save your settings, the method I use is to write the iptables command to a .sh file, execute 11.Q: Hello, I use redhat Linux7.2, choose completely installation, which browser uses the system Belt. In this system, DNS, Apache is set.

The setting should be correct, I am placed in a normal HTML file in the main directory of the virtual host, such as index.html, when entering www.xxx.com in the browser, can I display which index.html execution content. But when I put a aa.php file in this directory, enter www.xxx.com/aa.php in the browser, the browser only shows the original code of this PHP file, not the result. I am a beginner PHP, which PHP program is very simple. (The syntax should have no error, I am copying it) aaaaa </ title> </ head> <body> <? Php echo "My first php program.";> < / body> </ html> I have tried, HTTPD RESTART, but the problem is not resolved. If the syntax is correct, it should be the server does not perform which one <? PHP. . . ? > Marked. If it is named AA.html, the original code will not be displayed, the title is also displayed as AAAAA, but the content of Body is empty. How should I solve this problem? Another problem is: What is the good editor under Linux, which is similar to Ultra Edit under Windows. (To write PHP programs with vi is too inconvenient.) A: Your Apache configuration supports PHP? A: According to book, it should be added to addtype application / x-httpd-php.php address / x-httpd-php.php address / x-httpd-php.php address / x-httpd-phpd-pHP-source.phps? But after it is installed, is it in httpd.conf? 12.Q: I want to change the license permission of the file inetd.conf to 600, so the following errors appear when [root @ Linuxserver /] # chmod 600 /etc/inetd.conf: chmod: getting attributes of '/ etc / inetd. Why is there any inetd.conf file under the No Such file or directory / etc? ! A: Now the high version of Linux does not need inetd.conf, only xinetd.confq: This, I am now installing Linux 7.3, is it 7.3 previous version /etd.conf is now Linux7.3 version / etc / xinetd.con? But I have not found /etc/xinetd.con, and only /etc/xinetd.conf? A: inetd, is also called "super server", which is the daemon of some network requests, which calls according to network requests Service process to process connection requests. inetd.conf is an inetd configuration file. The inetd.conf file tells the inetD to listen to which network port is started for each port. Those services that are not needed should be banned or unloaded so that hackers have less opportunities to attack the system.</p> <p>So how should I configure the xinetd.conf file below 7.3? (I checked some of the materials that used to configure inetd.conf, I found that xinetd.conf has a big difference, I don't know if the function of inetd.conf is now 7.3's xinetd.conf functional) 13. Q: The problem is like this, today is installed after FreeBSD 4.2 on the server, two network cards, one binding the external network IP211.97. *, another binding inside network IP192.168. *, all set it Mask, only one default gateway 211.97. *. : After loading, inside and outside the network, but now is the server constantly displayed on the screen:: Mar 8 00:39:39 ServerName /kernel :arp:211.97.* is on fxp0 but got reply from 00:04: 27: 44: DF: 00 on fxp1 a: This is because you insert two NICs on a switch. 14.Mozilla Chinese package installation method: Enter file: /path/to/langzhcn.xpi in the Mozilla address bar, you will be prompted to be installed; or directly click File-> OpenFile-> Select the correct location of langzhcn.xpi, then open, mozilla will prompt you to install prdownloads.sourceforge.net/cnmozilla/langzhcn1.1b.xpi?downloadprdownloads.sourceforge.net/cnmozilla/langzhcn1.1a.xpi?downloadprdownloads.sourceforge.net/cnmozilla/langzhcn1.0.xpi? Download15.q: I downloaded the Xemacs package, after decompression, make, make install Run Xemacs, but no matter what file (PP, Java, PHP, PL) has no keyword color difference, what is going on> A: Built $ home /.EMACS writes: (Require 'c-mode) (Require' cc-mode) or after starting Emacs, execute MX C-MODE MX CC-mode 16.Q: Sorry, INDEX.ASP should be placed in Apache Which directory below A: The default should be / var / www / html in the Apache configuration file (the default configuration file is /etc/httpd/conf/httpd.conf has documentRoot = *** is the documentation stored Path ASP requires a third-party package to support 17.Q: Red Hat Developing Java Usually What tool? A: Use JDK, VI is a good editing tool If you have to use RAD, use Borland JBuilder, A: JBuilder 6 18.Q: QMAIL server mail.domain.com International domain named Domain.com system Send emails such as: ls | mail to www@163.com The send address appears: root@mail.domain.com, how can we make It is: root@domain.com ????? A: Modify your MX record .19.Q: On RH7.3, how can you log in with Win2K? For example, I have one Which user PPP password is VVVV to set up to boot, you can pass by PPP users and VVVV passwords. Automatic login? ? A: Mandrake Linux 8.1 Allows you to select an automatic login user at installation.</p> <p>If a person is fixed using a computer, this feature is very convenient, do not have to register at the time every time A: RH is changed to the Pico etc / initTab: 1: INitDefault: If you enter the Single user mode, just like Windows security mode, It can't be used. And the root mode can be made. 20.Q: How to record in RedHat7.2 I use REC-C 1 -R 8000 A.WAV Record in play -c 1 -r 8000 A.WAV can't hear Dongdong, or noise or no The recording tool of the graphics interface, introduces the Q: Supplement: I use play xx xxx .... or the broadcast tool provided by KDE to play some WAV sound files. But that is, you can't play your own record. I only used the REC command recording, I haven't tried other, I suspect that the recording has a problem, please help, or have a recording tool, introduce a: gnome has a recorder 21.Q: fstab 1 1 option means : The fifth item is to provide DUMP functions, whether it is required for the flag of BACKUP when system DUMP, and its internal value is 0. The sixth item is to set this filesystem whether to make Check's actions when booting, in addition to the necessary Check for root, others can set, the internal value is 0.22.q: I know Netscape 7.0 is a browser, but I saw Netscape Communicator 4.80. I don't know what it is? Is there any difference with the Netscape browser? A: In Linux, Netscape is a package that contains the basic library running Netscape, Netscape Communicator is another package First, first Netscape package, Communicator contains scripts that run Netscape and some tools, you can install Netscape Navigartor installed only browsers without installing him. 23: Q: I know that Last, or PS -EAFLAST can be seen? ? ? A: I use the Top first line to write up ... Last | GREP BOOT24: Q: PROFILE and RC.LOCAL? ? ? / etc / profile and /etc/rc.d/init.d/rc.local What is the difference? ? ? If I am automatic, start a program is good in PROFILE or in rc.local. What is the difference between these two files. Please tell me a high talk about A: The general situation is to put the system in Profile, and put the stuff you need to start in rc.local.a: Advise you not to put the launcher on rc.local because the above command It is performed before XINETD. If there is any problem with the run of the program, there will be no terminal to correct this error. Put the launch script in /etc/init.d/, then Link to RC3.D, if the program has problems, you can also enter a single user mode for fixing. 25: Q: Who will help explain this command under Linux. Thank you TAR CVF - / etc / | gzip -qc> backup.tar.gz, it is best to detail A: Package the files under the / etc / folder to compress the backup. TAR. The GZ file is probably a pipeline to compress the compressed package of the file under the previous TAR, compressed by Gzip to backup.tar.gz tar cvf - / etc / backup.tar gzip -qc backup.tar backup.tar.gz ( BY MB-1 (Network Rogue) 26: Q: Just used Squid to make a proxy, you do not support the SOCKS protocol.</p> <p>, I want to use Linux to do Internet cafes, I want to make the client to browse the web, use QQ, play stone time game, it is best to play CS online, please ask what is best? Squid, socks, ipchains, iptables, so much, choose these features that can be good, or how to match it? And what protocol is used in the online game online game? A: ipchains / iptables pulling, forwarding IP packs I just use it to QQ, MSN, AIM, ETC ...., and play CS, D2EXP, WTC (Other domestic did not play) 27.Q: Excuse me How to set up soft routing !! or set to gateway ???, like Sygate !!!!!! A: Oh, 俺 also learns. You first put Linux, then log in with root. Enter LinuxConf command, Set the server's IP and default gateway, then set to 192.168.0.1 in the virtual IP, start the route. Then enter several of the following commands: ipchains -p forward deny ipchains -a forward -j masq -s 192.168. 0.0 / 24 -d 0.0.0.0/0 / sbin / modprobe ip_masq_ftp then enter: echo "1"> / proc / sys / net / ipv4 / ip_forward / etc / sysconfig / network file, change "Forward_IPv4 = no" one sentence "Forward_ipv4 = yes". 28.Q: When I hiped Windows (EXT3) file system: When hung in the VFAT type, the long file name can be displayed, but the Chinese file name can be displayed. Use a lot of "??????" instead. When you use the MSDOS type, you can correctly display the Chinese file name, but you don't support long file name. I tried other file systems. One of the above situations; A: That how to solve both correctly display the Chinese file name, and support long file names? If you use Redhat, after choosing Chinese support, Chinese file name display "?" The processing method is: Modify the FSTAB file under / etc /. Add the following lines after the file is added, depending on the different situation of the hard disk partition. / Dev / hda1 / mnt / winme vfAults, codepage = 936, iocharset = cp936 0 0 / DEV / HDA5 / MNT / Program vfAt defaults, codepage = 936, IOCHARSET = CP936 0 0 / DEV / HDA6 / MNT / Backup vfAt defaults, codepage = 936, IoCharset = CP936 0 0 / DEV / HDA1 / MNT / WINC vfat user, exec, umask = 0, codepage = 93 6, IOCHARSET = GB2312 0 029.Q: You can only open Netscape: Mail & NewGroup first, then press the Alt 1 hotkey to open Netscape Comunication, how can I do to open the Netscape browser. . .</p> <p>A: There is this choice inside preference, you can choose what 30.q: I installed everything well, but the PHP page of the browsing is actually original code, how to solve it? A: httpd.conf plus AddType Application / X -HTTPD-PHP .PHP 31.Q: Hzskgg.com IP: 61.142.15.172 DNS has been equipped, the virtual host httpd.conf configuration is as follows: ############# ################## Namevirtualhost 61.142.15.172 <virtualhost 61.142.15.172> ServerAdmin webmaster@hzskgg.com documentroot / Home / Guang Nameserver www.hzskgggg .com </ virtualhost> ######################################################## It is always placed in the GUANG Location, and when you browse www.hzskgg.com when you get online, you will always appear as follows: You don't have permission to access / on this server If you put the above virtual host When you remove this section of httpd.conf, you can see the normal test page of Apache, how to solve your prawn! ! ! ! ! A: Mainly, you don't have the right to set the / home / guang directory, refer to the settings of the previous <Directory> 32.Q: mysql root password Lost How to find a: Log in to SAFE_MYSQLD --SKIP-GRANT-TABLES & Enter After the password 33.Q: Why is my nslookup can't start, please advise: DNS2 # nslookup *** can't Find Server Name for Address 202.100.125.116: non-eviStent host / domain *** Default Servers Are Not Availablea: Your DNS Server is your own? There is a mistake with it. . . . The client is here to file in the db.125.100.201116.125.100.202.in-addr.arpa. In Ptr yourDomain34.Q: I am an initiator, after the installation of Linux7.1, the telnet is not going, but SSH1 can be What are they different, is the port different? How do I check their port status. At the same time, I have configured Samba. After the modification of smb.conf, I have been restarted, but the network neighbors can not see him, but it can be used before this, but after I have been modified, I found that I was not changing back to the original, and it was not. . do not know why. What is the command of kill -hup? Thank you. A: telnet is not possible to be your Telnet service is not open.</p> <p>SSH1 can make, the end of your SSHD service opens with root to open the Telnet service and then Service Xinetd Start can Telnet, but not root 4.1 defaults) Ipchains is replaced by iptables.......... NAG 2.0 on LinuxDoc also has an introduction. 35.Q: I have already installed the Telent-Server package, and I have already launched it, why can other computers can't log in? A: See if there is no firewall ipchains -l to perform ipchains -f or go to Setup to stop ipchains, iptables, which will remove all firewall rules. If you understand Ipchains, it is best to remove Telnet. Other still take effect 36.Q: How to write a script to write a script to run it using ssh to log in to a Linux and execute the command df -v? A: Script is unlikely to implement, use Sockets to program! 37.Q: How to limit FT / TELNET only allows partial address to be used? A: You see my /etc/hosts.allow file: All: 210.93.47.130 All: 210.93.47.131 All: 192.168.47.132 All: 192.168.1.0 55555.255.0 All: 192.168.2.055555.255.0 iPop3d: all IN.FTPD: 192.168.1.1192.168.1.1. telnetd: 192.1.2, 192.168.1.3 I just want to allow 192.168.1.1 ~ 192.168.1.3 can be ftp / telnet, but You can use POP3, the result is now the POP3 is set up, but FTP and Telnet are not right. Where is the above setting? Thank you! 38.Q: RedHat 7.2 Use ipchains but each Client side uses FTP to use FTP, and how to use the FTP module plug-in using RH6 A: 1. Red Hat 6.2 KERNEL 2.2.X to resolve FTP Client Nat, need to hang one IP_MASQ_FTP module, kernel 2.4.x can use ipchains (not IP_MASQ_FTP module), but it solves the FTP Client Nat, except in Passive Mode, but use IP_nat_ftp processing, just IP_nat_ftp cannot be combined with IPchains, so it is recommended to use iptable deal with. 2. MODPROBE IP_NAT_FTP 3. ipchains and iptables cannot be concurrently, to use them, first remove the other modules (7.2 and 7.1 basically the same) After the installation is complete, you must internetize Up2date your server. 39.Q: Who can talk about GCC3A: GCC is the GCC version of the system, which is also the GCC version used to compile this kernel. The GCC3 is generally attached, which is to adapt to the compilation requirements of some software. Go up. 40.Q: How to temporarily add exchange space a: 1. Generate a 64M empty file #dd if = / dev / zero of = / swapfile bs = 1024 count = 655362. Initialization This file is swap file: mkswap / swapfile 65536sync3. Activate this exchange file: swapon /swapfile41.q: How to test hard disk performance A: Use hdparm -t -t / dev / hdx to test two data of the hard disk's buffer-cache reads, and buffered Disk reads, which can be used as a hard disk Performance reference.</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-24872.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="24872" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.039</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'kpyWNHHkpBJoDIJhJDtbw3liV8QVXrJirXcPBdmlRuZF87qQcZkqMGLK90mfCVv6QZjSMU9K00TCq_2Ba7vjnbRQ_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>