1 Configuring the Site Directory, take Ubuntu as an example1) Open the default configuration folder for Apache: cd/etc/apache2/sites-available2) Open config file, this machine is sudo vi 000-default.conf3) Modify the path> ServerAdmin [email protected] /data/test errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/Access.log combined 2 Configure the virtual directory, take windows as an example1) Open httpd.con
In order to solve the limitation of the number of physical serial ports, the virtual serial port software should be used as far as possible in serial debugging experiment. VSPD (Virtual Serial Ports Driver) is a virtual serial port software designed by Eltima software compan
serial port. All data written to master is automatically sent to slave. So, we can get the data we want on the slave side.#!/usr/bin/env python#Coding=utf-8ImportPtyImportOSImport TimeImportArrayImportRandomdefmkpty ():#Make pair of pseudo TTYMaster, slave =pty.openpty () slavename=os.ttyname (slave)Print '\nslave device names:', SlavenamereturnMasterif __name__=="__main__": Master=mkpty () buf= Array.array ('B', [0] * 7) buf[0]= 0x00buf[1] = 0x02buf
inModify the DNS master configuration file as shown inModify the DNS zone configuration file as shown inCopy the zone data file and configure it as shownRestart the DNS service and test to see if it can be parsed as shownThe configuration for the same host name with the same IP for the different port numbers as shownCreate a directory of different hostnames and write a test content redirect to the directory as shown inAdd a
In the previous experiments, virtual serial ports were used, and the virtual ports COM1 and COM2. later, due to the uninstallation of software, there was always a virtual serial port in the Device Manager.
Every time you start the system, even if you detach the driver and delete the registry, the system will continue.
I have two more projects to deploy on one machine, two projects for two different services, one to start listening on 8001 and another to listen on 8002 ports, which is a multi-port-based virtual machine host configuration, only need to change the conf/in the Tomcat directory Server.xml configuration file with the following contents: Then start Tomcat on the line. (The tomcat version of this test is 1.6.x
Environment: The system environment is win7. The tool used to create virtual serial ports is Npadm of version 1.12, and the program language is c #.
The program has been running well before. I don't know why recently. When the program service starts and creates a serial port connection, the program log records "insufficient system resources. The requested service cannot be completed .". I thought it was a
1. Open the apache/conf/httpd.conf file to add listen 8080 (listening port number)Then join# Virtual HostsInclude "Conf/extra/httpd-vhosts.conf"Then joinDocumentRoot "e:\htdocs/"## Possible values for the Options directive is "None", "all",# or any combination of:# Indexes includes followsymlinks symlinksifownermatch execcgi multiviews## Note that "MultiViews" must is named *explicitly*---"Options all"# doe
I want to try to use the local ip+port to access the Web server on the virtual machine, because in this way, I will be able to deploy my Web server to a network access to the server, first of all, my environment:
Host: System WIN7,IP address 172.18.186.210 virtual machine version is VMware Workstation 7, virtual machin
Cause: The virtual machine is not installed or SSH is not startedSolve:1. Installing Sshserversudo apt-get install Openssh-server2. Start the SSH servicesudo service SSH statusAdd:(1) The command to start, stop and restart Openssh-server is as follows:/etc/init.d/ssh start/etc/init.d/ssh stop/etc/init.d/ssh Restart(2) Set boot from startOpen the/etc/rc.local file and add it before exit 0:/etc/init.d/ssh startConnect the
Apache also features multi-site settings, which are also based on a configuration file (x:\Apache\conf\httpd.conf), called a site alias, as long as the last line in the configuration file is entered as follows,
One or more site settings,
Namevirtualhost *:80
httpd-vhosts.conf Configuration under Apache-20\conf\extra
Combined with C:\WINDOWS\SYSTEM32\DRIVERS\ETC under the hosts configuration
127.0.0.1 localhost
192.168.50.45 www.b.com
Two, multiple virtual
The KVM virtual machine uses NAT + iptables for port ing. Today, a user asked me a question. This is the case. He has a KVM host, and an Internet IP address is bound to the host server, but he wants to directly access the host using ssh.To provide Internet services for all the VMS, the solution is as follows: The www.2cto.com environment is RHEL6.3, and the Internet IP address is 115.183.0.11. use NAT to co
1, into the following directory
The code is as follows
Copy Code
/etc/vmware/vmnet8/nat/nat.conf
Edit this file, at the end of the file you can see:
The code is as follows
Copy Code
[INCOMINGTCP]# Use these and care-anyone can enter into your VM through ...# The format and example are as follows:##8080 = 172.16.3.128:80[INCOMINGUDP]# UDP Port Forwarding Example#6000 = 172.16.3.0:6001
1, open httpd.conf, find listen:80, add listen:8080 in the following line;2, find # include conf/extra/httpd-vhosts.conf, the line before the # removed;3, open the httpd.conf file directory under the Extra folder under the Httpd-vhosts.conf file;4, Find Namevirtualhost *:80, add Namevirtualhost *:8080 in the following line; (Can not write)5. Copy the following code at the bottom of the httpd-vhosts.conf file, and paste a copy below: Apache one IP multiple p
to my Computer (server side)
192.168.1.133 is the IP of the native computer, the internal starting port and the external starting port are the mapped ports (common settings)
3 Now back to configuring the DTU interface
After the configuration, click Save Configuration, know that the diary display save settings successfully.
Click Reboot and enter communication status
First introduce the environment:1. The host computer's operating system is scientific Linux, kernel version 2.6.18, hostname spvm02,ip address 135.100.101.102, and VMware Workstation 8 deployed.2. Guest (virtual machine) This side of the installed operating system is windows 7.3. Guest uses the VMNET8 network card to achieve Internet access through the NAT protocol.The feature that needs to be implemented is that other computers in the host network us
By default, Apache on Linux uses the
The default document directory is:/var/www
The default port is: 80
If you want to publish a system resource directory of your own, you can use the following method to execute the following command:
(1) Add listening port#cd/etc/apache2
#vim ports.conf
File add:
Namevirtualhost *:8000Listen 8000
(2) Configure the virtual di
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.