• ベストアンサー

/usr/local

Yemuの回答

  • Yemu
  • ベストアンサー率29% (40/137)
回答No.1

本来cpでやった後に削除するべきでしたね・・・ いい勉強をしたと思って^^; 全てcpなりmvしたならば、 気持ちは悪いですが、余計なfileがあっても 特に問題はないのでは?

kaito1126
質問者

お礼

ご返信ありがとうございます。 そうですねぇ、cp を使っていれば・・・。 問題が大ありなのですよ! 以前動作していたcgiなどが動かないんですよ!! ディレクトリ構成が変わったためだと思うのですが。 analogとかapache2とかここでよかったのでしたっけ? たしか、/usr/localにはユーザがmake installしたのが入るのでしたよね?? 度々申しわけありません。

関連するQ&A

  • /usr/share/docは移動してもシステムに問題は無い?

    RH9をインストールしました。 今日、dfコマンドしてみましたら、ディスク領域が圧迫されてまして、使用率100%に なっていました(/dev/hda1は約8GB)。 今、アチコチどのディレクトリが圧迫しているのか調べていてまして、 とりあえず # du -s -m /usr/share/doc 573 /usr/share/doc を見つけました。これはただのドキュメントファイルが格納されているディレクトリだと思いますがこれを # cat /etc/fstab : /dev/hdb1 /home/user01/fat32 vfat codepage=932,iocharset=euc-jp,dafaults,rw,user,exec,umask=0 0 0 でマウントしているfat32のHDD下に移動させて # mv /home/user01/fat32/doc /usr/share/doc # ln -s /usr/share/doc /home/user01/fat32/doc リンクを張ってもシステムの運用に問題は生じるませんでしょうか? その他、 /はhda1にマウントされているのですが、 /home/user01/fat32 に移動してリンク張ってれば特にシステム的には差し支えないというディレクトリがあればお教え下さい。

  • FreeBSD4.7にphp5.2の導入失敗

    FreeBSD4.7にphp5.2.17をインストールしましたが、makeの時点でエラーが出てしまいました。 OS環境が古い気もするので、このOSにすんなり入るphp5.2系バージョンや、packageが入手出来るのであれば教えてください。 補足 Apacheは1.3.8 レンタルサーバなので、OSのアップグレードはできません。 以下インストールログ ******* /usr/ports/lang/php52# make (ちなみに/php5からmakeしても似たようなエラー) ===> php52-5.2.17 depends on file: /usr/local/bin/autoconf-2.68 - not found ===> Verifying install for /usr/local/bin/autoconf-2.68 in /usr/ports/devel/autoconf ===> Building for autoconf-2.68 gmake all-recursive gmake[1]: Entering directory `/var/build/ports/devel/autoconf/work/autoconf-2.68' Making all in bin gmake[2]: Entering directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/bin' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/bin' Making all in . 中略 autoconf-2.68.texi:24219: Unknown command `'. autoconf-2.68.texi:24311: Unknown command `'. makeinfo: Removing output file `autoconf-2.68.info' due to errors; use --force to preserve. gmake[2]: *** [autoconf-2.68.info] Error 1 gmake[2]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/doc' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68' gmake: *** [all] Error 2 *** Error code 1 Stop in /ports/devel/autoconf. *** Error code 1 Stop in /ports/lang/php52. *** Error code 1 Stop in /ports/lang/php52. ※MySQL5.1系、php5.2系をインストールするのが目的です。 portsからだとMySQL5.1も同様にエラーでインストールできないので、こちらも合わせてアドバイス貰えると嬉しいです。 以上、宜しくお願いいたします。

  • apacheで「You don't have permission to access 」

    Nagiosというソフトをインストールしているのですが(Webベースで動く)、 http://localhost/nagios にアクセスすると、「You don't have permission to access /nagios/ on this server.」と出てしまいます。Apacheのhttpd.confは最後の行に、 ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin <Directory "/usr/local/nagios/sbin"> AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all </Directory> Alias /nagios /usr/local/nagios/share <Directory "/usr/local/nagios/share"> Options None AllowOverride AuthConfig Order allow,deny Allow from all </Directory> を加えて、以下も加えました。 <Directory /> Options FollowSymLinks AllowOverride Options </Directory> AddHandler cgi-script .cgi 何か原因は考えられるでしょうか?これだけではやはり、情報不足でしょうか?

  • ダウンロードしたファイル

    ダウンロードしたファイルを/usr/local/srcの直下に置き、展開し、展開したディレクトリに移動します。 という指示なのですが、ADSL接続、ダウンロードはできるようになったのですが、 「/usr/local/srcの直下に置き」というのは srcの中に移動してという意味でしょうか? windowsのようにドラッグアンドドロップができないため、どうやって移動させたらいいのでしょうか?

  • pLaTeXでの図の挿入

    pLaTeX環境を作ってる途中、 c:\usr\local\share\texmf\tex\latex\graphics のディレクトリが無い事がわかりました。 そしてどんなにコンパイルしても graphicx.styが無いと言われます。 いったいどうすれば良いのでしょうか? どなたか解答お願いします。 非常に困っています。

  • VPSのCentOS5でサーバ構築を勉強中です。

    VPSのCentOS5でサーバ構築を勉強中です。 postfix、devecotの設定でつまずいてしまい、数日膠着状態です。 mailコマンドで携帯やISPのメールアドレスには送ることが出来るのですが、 受信ができません。どこが怪しいのかアドバイスよろしくお願いします。 VPSは固定IP、ポート開放は確認出来ています。 ドメインのDNSは Aレコード xxxxxx.com 12.34.56.78 MXレコード xxxxxx.com に設定しました。ドメイン名でapacheのHPが見えるのを確認済。 postfixとdevecotのmailboxはmaildirで統一。 postfixのmain.conf(コメントアウトは削ってあります) queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = xxxxxx.com mydomain = xxxxxx.com myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain unknown_local_recipient_reject_code = 550 mynetworks = 192.168.0.0/23, 127.0.0.0/8 relay_domains = $mydestination etc/postfix/relay_recipients alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.3.3/samples readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES メールのログは文字数制限の為、補足に後ほど追記します。 アドバイスよろしくお願いいたします。

  • 自宅mailサーバからPHSにメールが送信されない

    最近、自宅でMailサーバを立ち上げました。WBEL3にPOSTFIXを導入し、SquirrelMailでweb上からmailを送受信していますが、ウィルコムのPHSにmailが届かない(多分携帯にも)ので、postfixのmain.cfに下記の設定を追加し、  transport_maps = hash:/etc/postfix/transport postmapで下記の記載のtransportをtransport.dbにした上でPOSTFIXを再起動してみました。  pdx.ne.jp :[smtp.pdx.ne.jp] .pdx.ne.jp :[smtp.pdx.ne.jp] それでも、mailが届きません。設定の仕方がおかしいのでしょうか?ご教示下さい。 main.cfの上記以外の設定は下記の通りです。 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname =****** mydomain = ****** myorigin = $mydomain inet_interfaces = all mydestination = $myorigin, $myhostname, mail.$myorigin unknown_local_recipient_reject_code = 550 mynetworks = ***.***.***.***/24, 127.0.0.0/8 alias_maps = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin  xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.0.16/samples readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, permit mailbox_size_limit = 1000000000 message_size_limit = 20000000 smtpd_recipient_limit = 50 smtpd_recipient_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/pop-before-smtp, reject_unauth_destination transport_maps = hash:/etc/postfix/transport

  • phpのpearが使えない

    いつも参考にさせて頂いています。 pearコマンドが使えなくなってしまいました。シェルでpearと打つと下記エラーが発生します。 【エラー内容】 Warning: require_once(PEAR.php): failed to open stream: No such file or directory in Config.php on line 27 【原因】 おそらく、PEARディレクトリを移動させてしまったからだと思います。 なので、/usr/bin/pearをviで下記のように変更した所、上記エラーが発生しました。 include_pathを/usr/share/php ⇒ /usr/local/php pearを再インストールすれば改善されるでしょうか? できれば再インストールする際の手順なども教えて頂けると嬉しいです。(参考URLでも全然OKです。 それともPEARディレクトリを移動させても問題なく動作させる方法があるでしょうか?どうか宜しくお願いします。

    • ベストアンサー
    • PHP
  • ディレクトリの移動 cd 

    初め、/usr/localにapache-ant-*-bin.tar.gz (/home/usrname/ダウンロード/下にある)を展開しようとして次のコマンドを実行しました。 /usr/local$ tar -xzvf /home/usrname/ダウンロード/apache-ant-*-bin.tar.gz すると cp: ディレクトリ `./apache-ant-1.7.0' を作成できません: Permission denied と出て、できませんでした。次にディレクトリを移動して ~/ダウンロード$ tar -xzvf apache-ant-*-.bin.tar.gz を行い、またディレクトリを移動して /usr/local$ cp -r /home/usrname/ダウンロード/apache-ant-* . のコマンドを実行するとまた cp: ディレクトリ `./apache-ant-1.7.0' を作成できません: Permission denied と表示されて移動させることができません。。 なんででしょうか?お願いします。

  • CentOSにてpostfixの設定

    CentOSにpostfixを導入し、メール受信をトリガーにシェルスクリプトを起動させたいと考えています。 レンタルサーバの為postfixが無かったのでyum install postfixでinstallしました。 その後の設定ですがイマイチ分からずとりあえず他のサイトを色々みてやったのですが、うまく動きません。 /etc/aliases にviエディタにて hoge.hoge.hoge: | "/usr/local/hoge/bin /usr/local/hoge/bin/sh restart.sh" を記述しました。 /etc/postfix/main.cf 上記設定ファイルには下記を有効にしています。 ・queue_directory = /var/spool/postfix ・command_directory = /usr/sbin ・daemon_directory = /usr/libexec/postfix ・mail_owner = postfix ・myhostname = hogehoge.com ---->同じでOK? ・mydomain = hogehoge.com ---->同じでOK? ・myorigin = $mydomain ・inet_interfaces = all ・mydestination = $mydomain, $myhostname ・unknown_local_recipient_reject_code = 550 ・alias_maps = hash:/etc/aliases ・alias_database = hash:/etc/aliases ・recipient_delimiter = - ・debug_peer_level = 2 ・debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 ・sendmail_path = /usr/sbin/sendmail.postfix ・newaliases_path = /usr/bin/newaliases.postfix ・mailq_path = /usr/bin/mailq.postfix ・setgid_group = postdrop ・html_directory = no ・manpage_directory = /usr/share/man ・sample_directory = /usr/share/doc/postfix-2.3.3/samples ・readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES /var/log/maillog には何も記載されていませんでした。 MTAもpostfixに設定しました。(system-switch-mailにて) /var/log/messages にも何も記載されていませんでした。 /etc/aliaesも変更しました hoge.hoge.hoge: | "/usr/bin /usr/local/hoge/bin/restart.sh" と一行追加しています。追加後 newaliaesも実行しDBも更新しています。 goge.hoge.hoge@example.comに携帯からメールを送信すると宛先不明等のメールは返ってきません なのでメールは受信できているのかとも思ったのですが /var/mail/hoge.hoge.hoge は0バイトになっているので受信していないようです。 レンタルサーバーのVPSを使っています。 そこでgoge.hoge.hoge@example.comのメールアドレスは作成済みです。 基本的な事は確認したつもりです。 postfixは起動しています。 MTAもpostfixに設定しました。 気になるのが、main.cfの設定です。 myhostname と mydomain が同じであることです。 どうぞ、ご教授の程宜しくお願い致します。