Create a shared memory file #touch/usr/local/apache/logs/shm.file//
I just started to install Tomcat, always unsuccessful, then I ran to the Apache website, read a only two-page English instructions, and soon it was ready. I found that the domestic author always like to trick, the original is very simple things make very complex, so that people can not understand, to show their brilliant.
If [f $PROFILEDIR/tomcat5_apache2]; Then
echo "Running tomcat5_apache2"
Else
If [f $CATALINA _home/bin/startup.sh]; Then
If [f $APACHE _home/bin/apachectl]; Then
"$CATALINA _home/bin/startup.sh"
echo "Startting Tomcat5"
Sleep 3
echo "Startting Apache2"
$APACHE _home/bin/apachectl Start
echo "."
Touch $PROFILEDIR/tomcat5_apache2
Else
echo "Apache File not founds"
Fi
Else
echo "Tomcat File not founds"
Fi
Fi
;;
Stop
If [f $PROFILEDIR/tomcat5_apache2]; Then
If [f $CATALINA _home/bin/shutdown.sh]; Then
If [f $APACHE _home/bin/apachectl]; Then
"$CATALINA _home/bin/shutdown.sh"
echo "Stopping Tomcat5"
Sleep 3
echo "Stopping Apache2"
$APACHE _home/bin/apachectl Stop
RM $PROFILEDIR/tomcat5_apache2
Else
echo "Apache File not founds"
Fi
Else
echo "Tomcat File not founds"
Fi
Else
echo "Not Running tomcat5_apache2"
Fi
;;
*)
echo "Usage; ' BaseName $ ' {start|stop} ' 1>&2
Exit 1
;;
Esac
Exit 0
3. Set Auto Start
#chmod u+x/etc/rc.d/init.d/httpd//modify File Execution permissions
#/sbin/chkconfig--add httpd//Add httpd to the System launch list
#/usr/sbin/useradd-d/usr/local/cvsroot CVS//create CVS Admin user.
#passwd CVS//create Admin user password.
# chmod 771/usr/local/cvsroot//Modify CVS root permissions.
# su CVS//Use the identity of the CVS user.
$ cvs-d/usr/local/cvsroot init//Initialize CVS repository.
$exit//Quit the CVS user identity.
#chmod 644/etc/xinetd.d/cvspserver//Modify CVS service boot file permissions.
#/etc/rc.d/init.d/xinetd Restart//reboot XINETD Super server.
# Netstat-lnp|grep 2401//See if the CVS service has been started.
#/usr/sbin/useradd cvspub//create CVS equivalent system user cvspub.
#/usr/sbin/usermod-g CVS cvspub//cvspub users into the CVS group.
#cd/home/tets1//Enter the test project directory.
#cvs Import-m ' This are a test only ' test1 v_0_0_1 start//To import the files for the current project into the CVS repository.
Description
CVS password problem, the previous opinions, some program to generate a password, and some use the so-called soil method to copy shadow password. In fact, I can tell beginners one of the simplest and easiest way is to use Webmin to add CVS users, it will help you generate the password.
At this point, the entire system configuration is complete. In this system configuration process, there have been many errors, unfortunately, through the English site to find solutions, I really hope that the technical level of our domestic site can be raised as soon as possible. Although this article seeks to be concise and clear, but due to time constraints, many places may not be satisfactory, such as you do not understand the place, please contact me, I will adopt your views, will be difficult to understand the place to change. In the configuration process, the reference to a lot of excellent articles, here thank you to the author! Finally, I would like to say that this system was supposed to be built on the FreeBSD platform, but because the Java environment on the FreeBSD platform is not yet complete, I finally have to regret abandoning the best operating system on the Intel platform, choosing the performance and stability of the general Redhat Linux.
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.