####init.d
/etc/init.d/mysql start/stop/status
####service
service mysql start/stop/status
####log
/var/log/mysql.log
/var/log/mysql.err
####init.d
/etc/init.d/mysql start/stop/status
####service
service mysql start/stop/status
####log
/var/log/mysql.log
/var/log/mysql.err
create gitconfig:
user> git config –global user.name “jayceee”
user> git config –global user.email jicheng17@gmail.com
user> git config –global -e
edit gitconfig to add in:
[http]
proxy = http://mydomain\\myusername:mypassword@myproxyserver:8080
try to start ssh
/etc/init.d/sshd restart
/etc/init.d/sshd status
Check log:
sudo /usr/sbin/sshd -d
#### define eth0 interface
##### vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=no
ONBOOT=yes
HWADDR=00:50:56:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.8
NETMASK=255.255.255.0
NETWORKING=yes
HOSTNAME=web.example.com
GATEWAY=192.168.1.1
nameserver 192.168.1.1
nameserver 8.8.8.8 # Google’s DNS server
Calculate / Compute md5sum
Calculate or compute md5sum for the input file.
$ md5sum samplefile.txt
3b85ec9ab2984b91070128be6aae25eb samplefile.txt
yii and project folder in the webapp
#####setup db
config/main.php
data/*.sql
You don’t have to copy your project files into webapp everytime after make changes.
Just do this:
ln -s ~/projects/fishfamily /var/www/
then you will see in /var/www/:
lrwxrwxrwx 1 root root 32 Apr 12 01:33 fishfamily -> /home/jaycee/projects/fishfamily
####To install the default LAMP stack in Ubuntu 10.04 and above
First install tasksel…
$ sudo apt-get install tasksel
… and then the LAMP stack:
$ sudo tasksel install lamp-server
####Test the installation
The webapp folder is located /var/www
$sudo vi /var/www/info.php
create:
restart apache2 ,
sudo /etc/init.d/apache2 restart
Open browser: http://localhost/info.php
####log
/var/log/apache2 logs
####install phpMyAdmin
sudo apt-get install phpmyadmin
test it out:
http://localhost/phpmyadmin
####configuration
Just bought my new CPU with:
I5
16G ram
1TB hard disk.
But somehow the fan makes huge noise, trying to figure it out…. It is the case problem, changed to cooler master. Cooler master is quite nice.
####Install dual system – windows and linux ( CentOS 6.5 )
Download centOS 6.5 from centOs Website
Install centOS from ubs drive since I don’t have a cd-rom
create ubs bootloader.
Download UNetbootin http://unetbootin.sourceforge.net/
Follow the instruction and create ubs installer.
or mac
DiskUtility unmount the usb, then
dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/disk3s1
On windows, you need to partition resizing. In windows disk management tool, shrink free space for you linux installation, don’t format the space.
In the end, this task failed. The reason is the new bios – UEFI. Centos or ubuntu does not work on UEFI/EFI.
####What to do next?
change bios setting
-disable secure boot
After struggling for a week, installed ubuntu on the cpu.
####Ubuntu 12.0.4 is a delightful linux system
ubuntu software center – easily download software
apt-get intall – easily install pkg
better gui
deluge bitorrent – a good bt client
#### vm workstation
installed vm workstation on ubuntu
create windows 7 virtual machine, and finally I got my windows and ubuntu running
somemore, I create centos vm and finally I got my centos running. 🙂
JAX-RS