Note: If you are using Ubuntu 9.04, refer to the following article: http://blog.csdn.net/wangjingfei/archive/2009/09/30/4619231.aspx
When performing an experiment on multiple servers, there will always be a code inconsistency problem. After modifying the code on one server, you must synchronize the code on multiple servers. if you copy it with a USB flash drive, it will be too bad .. after multiple attempts, I adopted the following policy:
1. Install the Ubuntu Desktop version on the development server to find information. The experimental server installs the Ubuntu console version to ensure performance;
2. There will always be file transfer between servers. Consider using tar cfz to package locally and then transfer it to the server through SSH. Related commands:
(1) tar cfz kfs-0.2.2
(2) SCP kfs-0.2.2.tar.gz fify@10.0.7.6:/home/fify/Packages
(3) tar xfz kfs-0.2.2.tar.gz
3. After the relevant package is transferred, You can compile and install it.
4. The code between different servers must be consistent. This experiment makes sense. To avoid manual transmission for every modification, I use CVs and can also perform version control.
5. Configure on the Development MachineCVS
, The command is as follows:
(1) sudo apt-Get install CVS:
Install
(2) sudo apt-Get install CVSD
: Install CVSD
(3) CD/var/lib/CVSD
: Create/myprop
(4) sudo mkdir cvsroot
(5) sudo cvs-d/var/lib/cvsd/cvsroot init
(6) echo "SystemAuth = no/nPamAuth = no/nLockDir =/tmp/cvsroot">/var/lib/cvsd/cvsroot/CVSROOT/config
(7) sudo mkdir/var/lib/cvsd/tmp/cvsroot
(8) sudo cvsd-passwd/var/lib/cvsd/cvsroot permission y
: Create a user
(9) sudo vi/etc/cvsd. conf
: Keep it default.
(10) sudo chown cvsd: cvsd/var/lib/cvsd-R
(11) sudo/etc/init. d/cvsd restart
: Restart the cvs service.
6. eclipse usageCvs
: Add resources and set the path to/cvsroot.
7. the test machine uses cvs. Related commands:
(1) cvs-d: pserver: fify@10.0.7.6:/cvsroot login
: Login
(2) cvs-d: pserver: fify@10.0.7.6:/cvsroot checkout/home/y/packages
: Export the files in/cvsroot to the/home/fify/packages directory.
8. Each time you modify all the testing machines, you only need to perform an update operation. The command is as follows:
(1)Cvs
Update
: You need to go to the corresponding directory