Apache Tomcat (or simply Tomcat) is an open source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages ( JSP ) specifications from Oracle Corporation, and provides a “pure Java” HTTP web server environment for Java code to run. The Windows binaries are available in two variants. This is what people usually use. This version of library is included in Apache Tomcat distributions. B) OCSP-enabled. This one has enabled support for verification of client SSL certificates via OCSP protocol.
Getting Started with 'Terminal' - MUST READ Before You Start Programming
Programmers use 'Terminal' to issue commands, instead of the graphical user interface - which is meant for common users.
You MUST have some basic knowledge on using the Terminal and the file system. Read 'Unix Survival Guide for Mac & Ubuntu - Terminal, File System and Users'.
How to Install JDK and Get Started with Java Programming on Mac
Read HERE.
Programming Text Editors for MacTextEdit for Mac
TextEdit (the default text editor in Mac OS X) is NOT a programming text editor, as it lacks features like syntax highlighting. I strongly suggest you install a programming text editor.
To use TextEdit to write source file, you need to open a new file ⇒ choose 'Format' ⇒ 'Make Plain Text'.
You can open an existing file in TextEdit from Terminal by issuing:
nano (or pico) Command-line Text Editor
nano is a GNU text editor that is available for Unix Systems (including Mac OS X), that is suitable for creating/editing small files. To start nano, open a Terminal and issue:
You can run nano with superuser (for accessing restricted directories), as follows:
JEdit for Mac
jEdit is a popular open-source cross-platform (Mac, Windows, Linux) programming text editor. The mother site is http://www.jedit.org.
Step 1: Download and Install jEdit for MacMac Install Tomcat
Step 2: Install 'Console' plugins
Step 3: Write a Hello-World Java Program
Step 4: Compile and Run the Hello-World Java Program
You can start a 'Terminal' to compile and run your Java program as described in the above JDK section.
You can also use the 'Console' plugin:
gedit for Mac
gedit is the official text editor of the GNOME desktop environment. The mother site for gedit is http://projects.gnome.org/gedit/.
Notes: To use 'gedit' commands in Terminal, you need to add '
/Applications/gedit.app/Contents/MacOS/ ' to PATH environment variable.
Sublime
@ http://www.sublimetext.com.
How to Install Eclipse on Mac
Read 'How to Install Eclipse for Mac OS'.
How to Install NetBeans on Mac
Read 'How to Install NetBeans on Mac'.
How to Install MySQL 5.6 on Mac OS X 10.7 LionInstall MySQL using the DMG Package
Reference: 'Installing MySQL on Mac OS X' @ http://dev.mysql.com/doc/refman/5.6/en/macosx-installation.html.
Step 1: Download and Install MySQL
Download the MySQL 'DMG Archive':
To install MySQL:
Step 2: Configuring MySQL - Change TCP Port Number for MySQL Server
Photo editing apps for mac. Notes: On Unix/Mac, the MySQL read the options file in this order: '
/etc/my.cnf ', 'SYSCONFDIR/mf.cnf ', '$MYSQL_HOME/my.cnf ', '~/.my.cnf '.
![]() Step 3: Start/Shutdown the MySQL Server
Open a new 'Terminal' and issue these commands to start the MySQL server:
Wd my book for mac. Install minecraft forge for mac. To shutdown the server, start a new terminal and issue:
Step 4: Start/Stop a MySQL Client
Open a new 'Terminal' and issue this command to start a MySQL client with superuser
root :
To terminate the client, issue command '
exit ' (or 'quit ') from the 'mysql> ' prompt:
Notes:
Step 5: (For Java Programmers) Install MySQL JDBC Driver
How to Uninstall and Remove MySQL 5
Install Apache On Mac
That's all!
(Advanced) Install MySQL using Tarball
Reference: http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html.
[TODO]
How to Install Tomcat 7 on MacStep 1: Download and Install Tomcat
(Notes for Advanced Users):
Download Apache Tomcat For MacbookStep 2: Configure Tomcat Server
Read 'Configure Tomcat Server'.
Step 3: Start the Tomcat Server
To start the Tomcat server, open a new 'Terminal' (Go ⇒ Utilities ⇒ Terminal) and issue:
Check for the Tomcat server's TCP port number from the console messages. The default is 8080.
To verify if the Tomcat server is started, start a browser (Safari) and issue URL
http://localhost:8080 , suppose that Tomcat is running on the default TCP port number of 8080.
Also try URL
http://localhost:8080/examples which shows the Servlet/JSP examples.
Step 4: Shutdown the Tomcat Server
Steam for mac 10.7.5. To shutdown the Tomcat server, you can simply press control-c (NOT command-c) on the tomcat console, or issue command:
Step 5: Servlet API
To write Java servlets, you need to COPY the Servlet API JAR file ('
servlet-api.jar ') from '/Applications/tomcat/lib ' to the JDK's extension directory at '/Library/Java/Extension '.
Installing GCC and Get Started with C/C++ Programming on Mac
To install
To verify:
Installing XCode & Get Started
XCode is the development toolset for Mac, iPhone/iPad, which includes the Mac OS SDK (for Mac) and iOS SDK (for iPhone/iPad).
Apache Tomcat V9.0 For Mac
To install:
To start Xcode, launch 'XCode' from '
/Developer/Applications '.
[TODO] Getting Started
More on Terminal & Bash Shell
Goto 'Terminal & Bash Shell'.
Mac's Tips & TweaksRoot (or Superuser, or Administrator)
In some cases (such as installing software and starting server), you need to be the so-called
root user (or superuser or administrator) of your machine to complete some commands that require high privilege. Put 'sudo ' (superuser do) in front of your command to run the command as root user, and provide the your password. Only authorized user can issue sudo command. For example, to start the MySQL server:
How to View All Files in Finder
Miscellanous
Contributed by Wang Qiang ([email protected]).
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |