Configure Fedora8 and use it as the notes for building various servers

Source: Internet
Author: User
The following are my notes on configuring Fedora8 and using it as a platform to create various servers. I hope it will help you. change postgres of the System user to log on, and change the home directory to/home/postgrespostgres & gt; initdb/home/postgres/data # gedit/etc/rc. d/init. d/postgrdsql change PGDATA =/var/lib/pgsql/data to PGDATA =/hom. Below are the detailed notes for configuring Fedora 8 and using it as a platform to create various servers, hope to help you.

Change postgres of the System user to logon, and change the home directory to/home/postgres.
Postgres> initdb/home/postgres/data
# Gedit/etc/rc. d/init. d/postgrdsql
Change PGDATA =/var/lib/pgsql/data to PGDATA =/home/S/data.

Note: postgres-d pgdata is manually started for pgsql


Jdk

Jdk1.63 is available in/home/download/java /.
Install it
An error occurred while running the java program: java: xcb_xlib.c: 50: xcb_xlib_unlock: Assertion 'C-> xlib. lock' failed.
Run the following command to fix the issue:
# Sed-I's/XINERAMA/FAKEEXTN/G' $ JAVA_HOME/jre/lib/i386/xawt/libmawt. so
Of course, you must configure jdk as follows, that is, add/home/bashrc
Export JAVA_HOME =/usr/java/jdk1.6.0 _ 03
Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib
Export PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH


Phlinux

After FC8 is reinstalled, the previous phlinux directory is still in progress and the configuration has not changed, but phlinux cannot be started.
If you reinstall phlinux, you still cannot start it.
You have:
First, use ps-A to view the list of all processes and remember the phlinux pid.
Use kill-9 again Kill this process
It is normal to start phlinux again.
Automatically Start gedit/etc/rc. d/local. d and add/usr/local/phlinux-d.


Apache + php

If a webpage error cannot be displayed, You Can # gedit/etc/php. ini and change displayerror off to On
The Chinese garbled Web can # gedit/etc/httpd/conf/httpd. conf will change AddDefaultCharset UTF-8 to adddefacharcharset off
Unable to connect to postgresql normally, you can install php-pgsql


Pirut
Add FC8 source http:/rpm.livna.org



Sendmail + dovecot

Install the two software with yum

# Gedit/etc/mail/local-host-names
Add your own domain name
# Gedit/etc/mail/sendmail. mc
DaemonPortsOptions = Port = smtp, Addr = 127.0.0.1, Name = MTA changed to: DaemonPortsOptions = Port = smtp, Addr = yourip or 0.0.0.0, Name = MTA
Modify user authentication
# Gedit/etc/mail/sendmail. mc enter it and find
Dnl DAEMON_OPTIONS ('port = smtp, Addr = 127.0.0.1, Name = MTA ') You can also change the dnl to the following:
DAEMON_OPTIONS ('port = smtp, Addr = 0.0.0.0, Name = MTA ') dnl
Then m4/etc/mail/sendmail. mc>/etc/mail/sendmail. cf

Create a user account

[Root @ localhost named] # groupadd mailuser
[Root @ localhost named] # adduser-g mailuser-s/sbin/nologin mike
[Root @ localhost named] # adduser-g mailuser-s/sbin/nologin john
[Root @ localhost named] # passwd mike
[Root @ localhost named] # Add a few passwd john passwords as you like (this section references another reprinted article)

Access control settings
# Gedit/etc/mail/access
Add ltest.com RELAY and 0.0.0.0 RELAY
Then, makemap hash/etc/mail/access. db </etc/mail/access updates the database.

(9) restart the service
[Root @ localhost named] # service sendmail restart
(10) test Server
[Root @ localhost named] # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost. localdomain (127.0.0.1 ).
Escape character is '^]'.
220 localhost. localdomain ESMTP Sendmail 8.13.1/8.13.1; Sat, 17 Mar 2007 12:54:47 + 0800
Ehlo localhost (user input)
250-localhost.localdomain Hello localhost. localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
December 250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 login plain --- authentication should take effect
250-DELIVERBY
250 HELP
Quit (user input to exit telnet)
221 2.0.0 localhost. localdomain closing connection
Connection closed by foreign host.
If you see this information, it means the operation is successful.


Gnump3d

Download: http:/www.gnu.org/software/gnump3d/

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.