Ngày 01 - tìm hiểu Drupal

Ngày 01 - tìm hiểu Drupal

Virtualbox Image

Configure your main OS hosts file

192.168.56.115 drupal.local chive.drupal.local training.drupal.local

221.132.36.8 drupalcode.org ftp.drupal.org

# Server hosts file: /etc/hosts

Server Commands

Nginx:

service nginx start

service nginx stop

service nginx restart


// Start nginx

nginx


// Stop nginx

nginx -s stop


// Test nginx configuration

nginx -t


// Reload

nginx -s reload


PHP{5.2,5.3}-FPM:


PHP 5.2: listen port 9000

PHP 5.3: listen port 9090


service php-fpm start

service php53-fpm start


service php-fpm stop

service php53-fpm stop


service php-fpm restart

service php53-fpm restart


MySQL:

service mysql start

service mysql stop

service mysql restart


OS:

Restart:

reboot


Shutdown:

poweroff

Commands

# Print workding directory

pwd


# Change working directory

cd /var/www/training.drupal.local


# Change working directory, and remember current working directory

pushd /var/www/training.drupal.local


# Go back to last remembered directory (see pushd)

popd


# List directory items

ls

ls -l

ls -la


# Make directory

mkdir /path/to/new-dirname

mkdir -p /path/to/new1/new2/new3


# Remove a file

rm /path/to/filename


# Remove a directory

rm -rf /path/to/directory-name


# Create new file

touch /path/to/newfile.txt


# Copy file, directory

cp /path/to/file1 /path/to/file2

cp -rf /path/to/director1 /path/to/directory2


# Move/Rename file/directory

mv /path/to/old-file-location /path/to/new-file-location

mv /path/to/old-directory-location /path/to/new-directory-location


# View a file

cat /path/to/file
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Yahoo Voice website reportedly hacked, over 400,000 username and passwords made public

Yahoo Voice website reportedly hacked, over 400,000 username and passwords made public

Hackers appear to have breached a Yahoo Voice server and posted around 453,000 user accounts and passwords online. D33Ds Company, a hacking group, made a file available on

Xu hướng chia sẻ sắp tới của facebook

Xu hướng chia sẻ sắp tới của facebook

Mạng xã hội đang chiếm ưu thế vượt trội trên Internet với lượng người dùng không ngừng gia tăng. 

Ngăn chặn mối xâm nhập nhà bạn - diệt mối 2016

Ngăn chặn mối xâm nhập nhà bạn - diệt mối 2016

Trong những tháng hè có nhiều khi quý vị cho con em đùa gìởn với các tia nước từ những vòi tưới cây

Công ty diệt chuột T&C

 

Diet con trung