|
发表于 2003-6-2 17:02:25
|
显示全部楼层
使用 vi 编辑一 shell 文件
请问文件名称是什么?
我应该在哪个目录下面运行它?
我输入 ./install(我建立的文件名称)
为什么会提示我权限不够呢?
我的系统是httpd-2.0.46+mysql-standard-4.0.13-pc-linux-i686+php-4.3.2+ZendOptimizer-2.1.0a-Linux_glibc21-i386
我的shell脚本名称是install
内容为:
#!/bin/sh
cd /home/src/mysql-standard-4.0.13-pc-linux-i686
./configure --prefix=/server/mysql
make
make install
/server/mysql/bin/mysql_install_db
chown -R root /server/mysql
chgrp -R mysql /server/mysql
chown -R root /server/mysql/bin
chgrp -R mysql /server/mysql/bin
chown -R root /server/mysql/var
chgrp -R mysql /server/mysql/var
chmod 777 /server/mysql/var
chown -R root /server/mysql/var/mysql
chgrp -R mysql /server/mysql/var/mysql
chmod 777 /server/mysql/var/mysql
chown -R root /server/mysql/var/mysql/*
chgrp -R mysql /server/mysql/var/mysql/*
chmod 777 /server/mysql/var/mysql/*
chmod 777 /server/mysql/lib/mysql/libmysqlclient.a
#安装 mysql-standard-4.0.13-pc-linux-i686
cd /home/src/httpd-2.0.46
./configure --prefix=/server/apache --enable-so
make
make install
#安装 httpd-2.0.46
cd /home/src/php-4.3.2
./configure --with-mysql=/server/mysql --with-apxs2=/server/apache/bin/apxs \
--enable-track-vars --enable-force-cgi-redirect --enable-pic \
--enable-inline-optimiation --enable-memory-limit --enable-bcmath \
--enable-shmop --enable-versioning \
-enable-calendar --enable-dbx --enable-dio --enable-mcal \
--with-config-file-path=/server/apache/conf
make
make install
cp php.ini-dist /server/apache/conf/php.ini
#安装php-4.3.2 ,以上某些模块可不使用,--with-config-file-path=/server/apache/conf 指定
#php的配置文件在目录 /server/apache/conf
ln -s /server/apache/bin/apachectl /bin/apache
ln -s /server/mysql/bin/mysql /bin/mysql
#创建符号连接
运行后出错:
[root@bll bin]# bash ./install
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables
030602 16:56:24 ./bin/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h bll password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
./install: line 6: /server/mysql/bin/mysql_install_db: 没有那个文件或目录
chown: failed to get attributes of `/server/mysql': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/bin': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/bin': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/lib/mysql/libmysqlclient.a': 没有那个文件或目录
Starting mysqld daemon with databases from /home/src/mysql-standard-4.0.13-pc-linux-i686/data
030602 16:56:24 mysqld ended |
|