Build a linux development environment

Source: Internet
Author: User
Linux development environment to build gtk install apt-getinstalllibgtk2.0-devapt-getinstalldevhelp # install devhelpGTK document view program Compile Command: gcctest. ctest 'pkg-config -- cflags -- libsgtk +-2.0 'java environment to build...
Install apt-get install libgtk2.0-dev apt-get install devhelp # install devhelp gtk in the linux development environment. c test 'pkg-config -- cflags -- libs gtk +-2.0 'to set up and download the bind file in the java environment, execute the sh jdk-6u26-linux-i586.bin or download the package file in the desired location environment configure www.2cto.com gedit/etc/environment export JAVA_HOME =/opt/jdk1.7.0 (your location) export JRE_HOME = $ JAVA_HOME/jre export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH gedit/etc/profile export JAVA_HOME =/opt/jdk1.7.0 _ 05 (your location) export JRE_HOME = $ JAVA_HOME/jre export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH source/etc/profile (it is better to log off) compile Command: javac filename. java (not packaged)/javac-d. filename. java (packaging) run the command: java filename mysql install apt-get install mysql-server connection format: mysql-uusername-ppassword Chinese garbled www.2cto.com modify my. cnf, my. ini default-character-set = gbk (changed to utf8 ...) you can also specify the encoding format when creating a table. create table tablename () default charset utf8; show variables like 'character % '; show create table tablename; to connect to mysql using java, you need to download the mysql jar package and put it in the odbc bridging Class under jre/lib/ext. forName (sun. jdbc. odbc. jdbcOdbcDriver); java. util. properties prop = new java. util. properties (); prop. put ("charset", "gbk"); prop. put ("user", username); prop. put ("psw", psw); Connection connection = DriverManager. getConnection (url, prop); Class. forName (com. mysql. jdbc. driver); url = "jdbc: mysql: // localhost/databasename" Connection connection = DriverManager. getConnection (url, user, psw); install the java environment for tomcat and directly decompress the default port: 8080 to configure www.2cto.com php + nginxphp: apt-get install php5 nginx: download pcre compilation download nginx compilation. /configure make install default port: When php is installed, the apache2 server is automatically installed, and service apache2 stop stops the service. The default webpage directory is/var/www. both apache2 and nginx are written by liangdan.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.