日記帳
本ページはプロモーションが含まれています
カテゴリー
Links
blog(ブログ)マスター
アンドロイドの巣
ゼロから始めるベランダ菜園
タイトル
ラジコン
2024年5月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Search Results

Apache2を起動

Apacheを起動できませんでした :
  Starting httpd: [] [warn] module php4_module is already loaded, skipping
  設定ファイルの編集
Include conf.d/*.conf
が2個あったので 一個削除
Apacheを起動できませんでした :
  [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Pre-configuration failed.
  あれぇ〜? なおらない。
と下を見ると・・・

 phpが馬鹿?

仕方がないので 急遽 仕様を変更

worker.htmlprefork


[root@localhost root]# update-alternatives --config apache2

There are 4 alternatives which provide `apache2'.

Selection Alternative
-----------------------------------------------
*+ 1 /usr/sbin/apache2.worker
2 /usr/sbin/apache2.prefork
3 /usr/sbin/apache2.threadpool
4 /usr/sbin/apache2.perchild

Press enter to keep the default[*], or type selection number: 2
Using `/usr/sbin/apache2.prefork' to provide `apache2'.

Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
  えっ? ヨシ 完璧?じゃ。。。
  synapticを起動
(゚ロ゚)ギョェ apacheが入っていたので削除
  起動 成功 ♪

じゃあ cgiとphpもいれたし動くよね?
  (゚ロ゚)ギョェ
  続く・・・

» 続きを読む

カテゴリー: Linux
2006.02.18

タイトル

執筆:2024.04.12
編集:2024.04.12




手順

(1) コマンドプロンプトを起動します

(2) 重要: コードページのデフォルトがシフトジスなのでをUTF8に変更します。

(3) git bashを呼び出します。

バッチファイルの場合は、utf8でファイルを保存します。

@rem CODE PAGE UTF-8
chcp 65001

"C:\Program Files\Git\bin\bash.exe" --login -i -c "bash内の実行したいunixコマンド"


用途例

タスク(cron) と組み合わせるとリポジトリの自動更新ができます
バッチファイルに入れておいたほうが、マシンを変更したときや修正したいときに便利です。

1行にするには、 && でつなげます。

最初からフォルダ移動していたほうがいいかもですね.

chcp 65001 && chdir "パス" && "C:\Program Files\Git\bin\bash.exe" --login -i -c "bash内の実行したいunixコマンド"



-c
If the -c option is present, then commands are read from the first non-option argument command_string. If there are arguments after the command_string, the first argument is assigned to $0 and any remaining arguments are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages.


-i 対話的

If the -i option is present, the shell is interactive.

2024.04.12

git rebase --onto 新しい親 比較元 新しい子

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-rebase(1) for details


コマンドに全角スペースが入っているとこのメッセージが出ます

コマンドラインに全角スペースが区切りとして混入していないか確認しましょう
2016.05.23

PR

[PR]