WEB architecture in-depth Optimization of Linux O m php and linuxweb
In-depth Optimization of WEB architecture PHP
I. PHP engine cache acceleration and optimization (4 types)
1. eAccelerator
2. XCache
3. APC
4. Zend
2. Use tmpfs as the cache accelerated cache directory (can be automatically mounted by rc. local or fstab)
Mount-t tmpfs-o size = 16G tmpfs/dev/shm
Linux System Web log analysis this aspectMore tools, such as Logwatch or awstats, are developed using Perl and are very powerful. But these software need to do someConfiguration, many friends often do not invest too much power in technology, even if reference to the Internet textThe tutorial also does not do. In this case I wrote a Web log analysis script, the fu
This blog will show you how to install three different text-based Web browsers on Raspberry Pi. The original article can be found here or at the bottom of this article. Most Web browsers run a little hard on the small school, or consume a lot of resources, so an alternative solution is to use a web browser based on command line.
So far, text-based browsers have n
1. Install SVN serverYum-y Install Subversion2. View information such as installation pathRPM-QL Subversion3. View SVN Help informationSVN help4. Create the SVN repository directory (this is a large library, which is a library of individual projects created with Svnadmin)Mkdir/home/svndb5. Create a repository (project)mkdir/home/svndb/test/Svnadmin create/home/svndb/test/6. Configuring the RepositoryInto/home/svndb/test/conf, with three files in it.Authz file is a permission control filepasswd i
Shell multithreaded Web page truncation Linux two screenshots Tools Cutycapt and PHANTOMJS, after testing, Cutycapt screenshot is slower, but relatively stable, phantomjs screenshots faster, but there is a process of suspended animation state. Weigh the pros and cons and decide how to use the Cutycapt+shell script to screenshot: webshot.sh #/bin/bash#webhsot#by Caishzh 2013Webshotdir= "/data/webshot"Mkdir-p
Linux under the Web Stress test tool, the most commonly used should be the Apache AB, of course, there are many options. Webbench,http_load. Look at your personal hobbies. Recently, however, the most handy thing to use is siege.Siege website Address http://www.joedog.org/, Latest version 3.0.8,http://download.joedog.org/siege/1. Installationwget http://download.joedog.org/siege/siege-3.0.8.tar.gzTar xzvf si
Use of the Web stress testing tool Siege in Linux
In Linux, the most common Web stress testing tool is apache AB. Of course there are many options to choose from. Webshells, http_load. It depends on your hobbies. However, recently, siege is the best choice.
Siege official website address http://www.joedog.org/
Latest V
I did not get a server, and now build a Linux server, jdk1.7 MySQL tomcat is ready, testing the time to publish the Web is available, want to do development, need 80 port.Question 1, first of all, I understand that this 80 port is to modify Tomcat 80 port (if wrong ask the critics to point out)Problem 2, I changed 80 ports and then posted to my server on the 502 error.
Please give me a lot of advice. My li
only after v2.3.5, see the official Changlog as follows (meaning that you cannot use chroot to restrict the writable root directory):ADD stronger checks for the configuration error of running with a writeable root directory inside a chroot (). This could bite people who carelessly turned on chroot_local_user but such was life.Well, if we enable chroot, we must ensure that the FTP root directory is not writable, so that the FTP root directly for the site root user is not convenient, so if the FT
I. Linux tomcat configuration and startup1.catalina.sh First line JoinDeclare-x catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"2. Start Jpda (This is the boot mode under Tomcat, the other servers may be different.) But the truth is the same)./catalina.sh JPDA Start3. Start the Web service./start.shTwo. In the Windows side of the MyEclipse in accordance with the configur
the following two lines of code:http. Handle ("/", HTTP. Fileserver (http. Dir ("HTML")))http. Listenandserve ("0.0.0.0:8080", nil)Step 4: The target environment is modified to CROSS-ARM6, according to "Ctrl+b" compiled, the generated execution file is the source directory "Test", no suffixStep 5: Copy "Test" to your arm Development Board (Raspberry Pi Raspberrypi, Orange pie Orangepi), and authorize: sudo chmod 777 test, while creating a new "HTML" directory in the "test" directory, run./testN
The new Smaba can only be used in the CIFS mount mode for several of the Web/samba in Linux.[Smbmount]Smbmount-o username= "username", password= "password"//IP/SHARE/MNT/SMBSMBUMOUNT/MNT/SMB[Mount]Mount-t smbfs-o username= "username", password= "password"//IP/SHARE/MNT/SMBUMOUNT/MNT/SMB[CIFS]Mount-t cifs-o username= "username", password= "password"//IP/SHARE/MNT/SMBUMOUNT/MNT/SMBMount.cifs-o username= "user
-get update apt-get dist-upgrade
# fedora/centos/redhat
Yum Update
Select the update upgrade command according to your system environment.
Second, set up and protect our SSH security
After we get the VPS, we recommend that you modify the port, root password, and authorize individual non-root user rights management, or we can use the key to login to SSH client Management VPS. For example, you can refer to the "Set Putty SSH use key to login to Linux
2017 09:48:22 +0800from localhost [127.0.0.1]-----The following addresses had permanent fatal errors-----[email protected]>(reason:550 Failed to connect remote host.)-----Transcript of Session follows-----... while talking to mx3.qq.com.:... while talking to mx2.qq.com.:So the machine was restarted a bit. You can do it.[Email protected]:/var/mail$ Echo]20171204tete" | Mail-s "TEst2"Xcy[Email protected]:/var/mail$ Mail"/var/mail/xcy": 3 messages 1 new 2 unreadU 1 Mail Delivery Subs December 4 10
(_) symbol).So, in this example, Django looks for a table named Myapp_student. Of course, db_table is not the only option you can use in the model's internal class Meta.You can view a list of available meta options on the Model Meta Options page of the Django document. VI myapp/views.py Add to From Myapp.models import studentdef latest_article (Request):Article_list = student.objects.order_by (' id ')return render (Request, ' index.html ', {' article_list ': article_list}) mkdir templatesVI ind
I have been studying and writing CGI in Linux recently. I just completed a message book and wrote my own experiences to share with you. If not, please correct me.
(1) Installation of Linux.I installed redhat9 (a little older, linux2.4 kernel) and used KDE (which is more beautiful than gnome). The editor in KDE has the syntax brightening function in multiple languages, especially Kate's built-in command line is very convenient for programming. apache (
Lamp:linux + apache + mysql + phpThe root cause of the problem with Linux+php+apache calling Python scripts in the previous essay is that Apache user permissions are not sufficient to use Apache runtime;The solution is to change Apache to the root user to execute, modify/etc/httpd/conf/httpd.conf, but the result is that Apache does not run up, preliminaryThe judgment is that Apache is not allowed to run with the root user for security reasons (this is
iptables start (effective immediately) View the ports that are open:/etc/init. D/iptables status Can be found only open port 22nd, need to open 8080 Port use command:iptables -A INPUT -p TCP --dport 8080 - J ACCEPT /etc /rc./init./iptables Save Save Settings /etcinit./iptables restart restart firewall At this point, you can see that port 8080 is openCurl localhost:8080 See if you can open the home page Get to Main page configuratio
From: http://mp.weixin.qq.com/s?__biz=MzA3OTgyMDcwNg==mid=2650625758idx=1sn= 856dda86869dfa29bf0bd652314eeb24scene=23srcid=0717ey5lrlvp2takzsafs4fz#rdNethogs: Show bandwidth usage for each process in case you want to know exactly which application is consuming your entire network resource# nethogs Eth0# nethogs-p Wlan0 #混杂模式来嗅探Netstat: Many Linux distributions are installed by default.Nagios: is a leading and powerful open source monitoring system tha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.