Fedora18 installation configuration

Source: Internet
Author: User
Fedora18 installation configuration 1 add educational network source (1) Shell code cd/etc/yum. repos. d/(2) Shell code sudovisjtu. repoShell code [Fedora-ftp.sjtu.edu.cn] nameFedora18 & amp; ndash; x86_64baseurl http://ftp.s ... Fedora 18 installation configuration 1 add educational network source (1) Shell code cd/etc/yum. repos. d/(2) Shell code sudo vi sjtu. repo Shell code [Fedora-ftp.sjtu.edu.cn] name = Fedora 18-x86_64 baseurl = http://ftp.s Jtu.edu.cn/fedora/linux/releases/18/Fedora/x86_64/ OS/enabled = 1 gpgcheck = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [Everything-ftp.sjtu.edu.cn] name = Everything 18-x86_64 baseurl = http://ftp.s Jtu.edu.cn/fedora/linux/releases/18/Everything/x86_64/ OS/enabled = 1 gpgcheck = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [Updates-ftp.sjtu.edu.cn] name = Fedora updates baseurl = http://ftp.s Jtu.edu.cn/fedora/linux/updates/18/x86_64/ enabled = 1 gpgcheck = 0 Note: This installation uses the fedora 18 x86_64 system. if it is a 32-bit system, change the x86_64 to i386. If the user has not become sudoers, enter the root user Shell code su vi/etc/sudoers and add a line of Shell code yourusername ALL = (ALL) ALL under the root user. then exit and restart, in this way, the common user name has all the permissions of the Super User. 2. install vim from the added Source. as I am used to using vim, install the vim editor below. Shell code yum install vim: wait until the installation is complete. 3. use openjdk directly in the jdk environment. 4. download and unzip eclipse, decompress it, and add the run permission Shell code chmod + x eclipse 5 to install Tomcat. download and unzip Tomcat 6.0.36.tar.gz to run startup. sh in the tomcat folder. http://localhost:8080 Everything works when you see the welcome interface. Configure Tomcat to automatically start Shell code sudo vim/etc/init. d/Tomcat6 Shell code #! /Bin/bash # chkconfig: 2345 10 90 # description: Auto-starts tomcat6 #/etc/init. d/tomcat6 # Tomcat auto-start # Source function library. #. /etc/init. d/functions # source networking configuration. #. /etc/sysconfig/network # set-x # service network restart RETVAL = 0 # export JRE_HOME =/usr/lib64/jvm/jre export CATALINA_HOME_6 =/home/bupt/programFiles/apache -tomcat-6.0.36 export CATALINA_BASE_6 =/home/bu Pt/programFiles/apache-tomcat-6.0.36 start () {if [-f $ CATALINA_HOME_6/bin/startup. sh]; then echo $ "Starting Tomcat6" $ CATALINA_HOME_6/bin/startup. sh RETVAL =$? Echo "OK" return $ RETVAL fi} stop () {if [-f $ CATALINA_HOME_6/bin/shutdown. sh]; then echo $ "Stopping Tomcat" $ CATALINA_HOME_6/bin/shutdown. sh RETVAL =$? Sleep 1 ps-fwwu tomcat | grep apache-tomcat | grep-v grep | grep-v PID | awk '{print $2}' | xargs kill-9 echo "OK "# [$ RETVAL-eq 0] & rm-f/var/lock /... return $ RETVAL fi} case "$1" in start) start; stop) stop; restart) echo $ "Restaring Tomcat6" $0 stop sleep 1 $0 start ;; *) echo $ "Usage: $0 {start | stop | restart}" exit 1; esac exit $ RETVAL save and exit. Shell code sudo chmod a + x Tomcat6 sudo chkconfig -- add Tomcat6 sudo chkconfig -- list Tomcat6 if it appears: Shell code note: The output result only displays the SysV service, not the native systemd service. The SysV configuration data may be overwritten by the native systemd configuration. Tomcat6 0: off 1: Off 2: Open 3: Open 4: Open 5: Open 6: off then everything is normal. After the Shell code chkconfig Tomcat6 on is restarted, Tomcat starts automatically. 6. install MySQL Shell code yum install mysql MySQL-server and set automatic startup. Shell code systemctl enable mysqld. service systemctl start mysqld. CREATE a password for the service and log on to the mysql Shell code mysqladmin-u root password myownsecrectpass mysql-u root-p to CREATE a USER Shell code mysql> create user 'webuser' @ '% 'identified BY 'password123'; authorize Shell code mysql> grant all on *. * TO 'webuser' @ '%'; update the Shell code mysql> flush privileges. the new user can log on remotely. the root user's remote logon permission is available below. Shell Code grant all privileges on *. * TO root @ '%' identified by 'mypassword' with grant option; flush privileges; if not, disable the firewall or add permitted information. Shell code sudo vim/etc/sysconfig/iptables add A line of Shell code-a input-m state -- state NEW-m tcp-p tcp -- dport 3306-j ACCEPT if you want to completely disable the firewall and SELinux Shell code sudo systemctl stop firewalld. service sudo systemctl disable firewalld. service Shell code vi/etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-SELinux is fully disabled. SELINUX = disabled # Modify # SELINUXTYPE = type of policy in use. possible values are: # targeted-Only targeted network daemons are protected. # strict-Full SELinux protection. SELINUXTYPE = targeted 7 install VNCServer remote is a required tool install Shell code yum install vnc-server tigervnc-server start Shell code vncserver view Shell code vncserver-list disable Shell code vncserver-kill: 1. set the self-starting Shell code sudo cp/lib/systemd/system/vncserver @. service/etc/systemd/system/vncserver @: 1. service add Shell code User = username save and exit and run Shell code sudo systemctl -- system daemon-reload sudo systemctl enable vncserver @: 1. service sudo systemctl start vncserver @: 1. service vncpasswd
Related Article

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.